diff options
author | Lad Prabhakar <[email protected]> | 2022-01-06 11:48:00 +0000 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2022-01-09 13:32:28 +0100 |
commit | 72b1e360572f9fa7d08ee554f1da29abce23f288 (patch) | |
tree | 61c2fc8a2ad0be07b90f207690582043d2cfac2e /net/lapb/lapb_in.c | |
parent | c6564c13dae25cd7f8e1de5127b4da4500ee5844 (diff) |
can: rcar_canfd: rcar_canfd_channel_probe(): make sure we free CAN network device
Make sure we free CAN network device in the error path. There are
several jumps to fail label after allocating the CAN network device
successfully. This patch places the free_candev() under fail label so
that in failure path a jump to fail label frees the CAN network
device.
Fixes: 76e9353a80e9 ("can: rcar_canfd: Add support for RZ/G2L family")
Link: https://lore.kernel.org/all/[email protected]
Reported-by: Pavel Machek <[email protected]>
Signed-off-by: Lad Prabhakar <[email protected]>
Reviewed-by: Kieran Bingham <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions