summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKulikov Vasiliy <segooon@gmail.com>2010-07-09 04:28:09 +0200
committerDavid S. Miller <davem@davemloft.net>2010-07-12 03:15:08 +0200
commitba80a2522899ea71a5b201bae60bdfd99126af95 (patch)
tree11d118bb09ee6a54afa3189610261018cb22982f
parentat1700: fix double free_irq (diff)
downloadlinux-ba80a2522899ea71a5b201bae60bdfd99126af95.tar.xz
linux-ba80a2522899ea71a5b201bae60bdfd99126af95.zip
ac3200: fix error path
Do not call free_irq() if request_irq() failed. Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ac3200.c2
1 files changed, 1 insertions, 1 deletions
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]);