summaryrefslogtreecommitdiffstats
path: root/drivers/net/ax88796.c
diff options
context:
space:
mode:
authorKulikov Vasiliy <segooon@gmail.com>2010-07-08 23:42:40 -0700
committerDavid S. Miller <davem@davemloft.net>2010-07-08 23:42:40 -0700
commit9f1e7582749980b51da67671b2536aadca3596b8 (patch)
tree4d7e64e43d56db82ceaf82e8f70ccd0a5dca92b6 /drivers/net/ax88796.c
parent3038bdb122c8aa2b219b548a345aafb1204c4f0b (diff)
downloadop-kernel-dev-9f1e7582749980b51da67671b2536aadca3596b8.zip
op-kernel-dev-9f1e7582749980b51da67671b2536aadca3596b8.tar.gz
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 55c9958..20e946b 100644
--- a/drivers/net/ax88796.c
+++ b/drivers/net/ax88796.c
@@ -481,8 +481,10 @@ static int ax_open(struct net_device *dev)
return ret;
ret = ax_ei_open(dev);
- if (ret)
+ if (ret) {
+ free_irq(dev->irq, dev);
return ret;
+ }
/* turn the phy on (if turned off) */
OpenPOWER on IntegriCloud