Re: [PATCH v2] can: mcp251x: fix error handling code in mcp251x_can_probe
From: Marc Kleine-Budde
Date: Tue Oct 25 2022 - 03:16:27 EST
On 24.10.2022 17:02:52, Dongliang Mu wrote:
> 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 <dzm91@xxxxxxxxxxx>
Applied to can/main.
Thanks,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature