提交 b2b09ad6 编写于 作者: U Uwe Kleine-König

net/fec: don't free an irq that failed to be requested

Reported-by: NLothar Waßmann <LW@KARO-elektronics.de>
Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
上级 28e2188e
......@@ -1409,10 +1409,9 @@ fec_probe(struct platform_device *pdev)
break;
ret = request_irq(irq, fec_enet_interrupt, IRQF_DISABLED, pdev->name, ndev);
if (ret) {
while (i >= 0) {
while (--i >= 0) {
irq = platform_get_irq(pdev, i);
free_irq(irq, ndev);
i--;
}
goto failed_irq;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册