Skip to content

Commit

Permalink
ac3200: fix error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kulikov Vasiliy authored and David S. Miller committed Jul 12, 2010
1 parent 451d33d commit ba80a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ac3200.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit ba80a25

Please sign in to comment.