From: Kulikov Vasiliy Date: Fri, 9 Jul 2010 02:28:09 +0000 (+0000) Subject: ac3200: fix error path X-Git-Tag: MMI-PSA29.97-13-9~23092^2~266 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba80a2522899ea71a5b201bae60bdfd99126af95;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ac3200: fix error path Do not call free_irq() if request_irq() failed. Signed-off-by: Kulikov Vasiliy Signed-off-by: David S. Miller --- diff --git a/drivers/net/ac3200.c b/drivers/net/ac3200.c index b9115a776fdd..5181e9322119 100644 --- a/drivers/net/ac3200.c +++ b/drivers/net/ac3200.c @@ -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]);