提交 ba80a252 编写于 作者: K Kulikov Vasiliy 提交者: David S. Miller

ac3200: fix error path

Do not call free_irq() if request_irq() failed.
Signed-off-by: NKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 451d33dd
......@@ -211,7 +211,7 @@ static int __init ac_probe1(int ioaddr, struct net_device *dev)
retval = request_irq(dev->irq, ei_interrupt, 0, DRV_NAME, dev);
if (retval) {
printk (" nothing! Unable to get IRQ %d.\n", dev->irq);
goto out1;
goto out;
}
printk(" IRQ %d, %s port\n", dev->irq, port_name[dev->if_port]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册