diff options
author | Dongliang Mu <[email protected]> | 2022-10-24 17:02:52 +0800 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2022-10-25 09:13:14 +0200 |
commit | b1a09b63684cea56774786ca14c13b7041ffee63 (patch) | |
tree | 062060e5294d06c7faabee844f634360cddea5ae /lib/mpi/mpi-sub-ui.c | |
parent | 3e5b3418827cefb5e1cc658806f02965791b8f07 (diff) |
can: mcp251x: mcp251x_can_probe(): add missing unregister_candev() in error path
In mcp251x_can_probe(), if mcp251x_gpio_setup() fails, it forgets to
unregister the CAN device.
Fix this by unregistering can device in mcp251x_can_probe().
Fixes: 2d52dabbef60 ("can: mcp251x: add GPIO support")
Signed-off-by: Dongliang Mu <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
[mkl: adjust label]
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions