Commit b17cbb1e authored by Marc Kleine-Budde's avatar Marc Kleine-Budde Committed by Sasha Levin

can: flexcan: flexcan_open(): fix error path if flexcan_chip_start() fails

If flexcan_chip_start() in flexcan_open() fails, the interrupt is not freed,
this patch adds the missing cleanup.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>

(cherry picked from commit 7e9e148a)
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 67e07286
......@@ -875,7 +875,7 @@ static int flexcan_open(struct net_device *dev)
err = request_irq(dev->irq, flexcan_irq, IRQF_SHARED, dev->name, dev);
if (err)
goto out_close;
goto out_free_irq;
/* start chip and queuing */
err = flexcan_chip_start(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment