aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ax88796.c
diff options
context:
space:
mode:
authorKulikov Vasiliy <segooon@gmail.com>2010-07-09 02:42:40 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-09 02:42:40 -0400
commit9f1e7582749980b51da67671b2536aadca3596b8 (patch)
tree4d7e64e43d56db82ceaf82e8f70ccd0a5dca92b6 /drivers/net/ax88796.c
parent3038bdb122c8aa2b219b548a345aafb1204c4f0b (diff)
ax88796: free irq on error
If ax_ei_open() failed we must free previously requested irq. Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ax88796.c')
-rw-r--r--drivers/net/ax88796.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ax88796.c b/drivers/net/ax88796.c
index 55c9958043c4..20e946b1e744 100644
--- a/drivers/net/ax88796.c
+++ b/drivers/net/ax88796.c
@@ -481,8 +481,10 @@ static int ax_open(struct net_device *dev)
481 return ret; 481 return ret;
482 482
483 ret = ax_ei_open(dev); 483 ret = ax_ei_open(dev);
484 if (ret) 484 if (ret) {
485 free_irq(dev->irq, dev);
485 return ret; 486 return ret;
487 }
486 488
487 /* turn the phy on (if turned off) */ 489 /* turn the phy on (if turned off) */
488 490