diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-07-08 22:28:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-11 21:15:08 -0400 |
commit | ba80a2522899ea71a5b201bae60bdfd99126af95 (patch) | |
tree | 11d118bb09ee6a54afa3189610261018cb22982f /drivers/net/ac3200.c | |
parent | 451d33dd223f15451c1b8fb388447d39e1cd955b (diff) |
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>
Diffstat (limited to 'drivers/net/ac3200.c')
-rw-r--r-- | drivers/net/ac3200.c | 2 |
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) | |||
211 | retval = request_irq(dev->irq, ei_interrupt, 0, DRV_NAME, dev); | 211 | retval = request_irq(dev->irq, ei_interrupt, 0, DRV_NAME, dev); |
212 | if (retval) { | 212 | if (retval) { |
213 | printk (" nothing! Unable to get IRQ %d.\n", dev->irq); | 213 | printk (" nothing! Unable to get IRQ %d.\n", dev->irq); |
214 | goto out1; | 214 | goto out; |
215 | } | 215 | } |
216 | 216 | ||
217 | printk(" IRQ %d, %s port\n", dev->irq, port_name[dev->if_port]); | 217 | printk(" IRQ %d, %s port\n", dev->irq, port_name[dev->if_port]); |