On 30.07.2024 12:12:21, Simon Horman wrote: > It appears that the irq requested in m_can_open() may be leaked > if an error subsequently occurs: if m_can_start() fails. > > Address this by calling free_irq in the unwind path for > such cases. > > Flagged by Smatch. > Compile tested only. > > Fixes: eaacfeaca7ad ("can: m_can: Call the RAM init directly from m_can_chip_config") > Signed-off-by: Simon Horman <horms@xxxxxxxxxx> Looks good to me! Acked-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> regards, 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 |
Attachment:
signature.asc
Description: PGP signature