[PATCH] can: at91_can: fix an error handle in at91_can_probe()
Marc Kleine-Budde
mkl at pengutronix.de
Sun Jan 25 12:31:38 PST 2026
On 25.01.2026 20:09:47, Haoxiang Li wrote:
> In at91_can_probe(), if devm_phy_optional_get() fails,
> the memory allocated by alloc_candev() should be freed.
> Modify the goto label to do so.
>
> Fixes: 3ecc09856afb ("can: at91_can: add CAN transceiver support")
> Cc: stable at vger.kernel.org
> Signed-off-by: Haoxiang Li <lihaoxiang at isrc.iscas.ac.cn>
A similar patch has just been reported, see:
https://lore.kernel.org/all/20260122114128.643752-1-zilin@seu.edu.cn/
Thanks,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260125/dcd3c11e/attachment.sig>
More information about the linux-arm-kernel
mailing list