commit | 9f1e7582749980b51da67671b2536aadca3596b8 | [log] [tgz] |
---|---|---|
author | Kulikov Vasiliy <segooon@gmail.com> | Thu Jul 08 23:42:40 2010 -0700 |
committer | David S. Miller <davem@davemloft.net> | Thu Jul 08 23:42:40 2010 -0700 |
tree | 4d7e64e43d56db82ceaf82e8f70ccd0a5dca92b6 | |
parent | 3038bdb122c8aa2b219b548a345aafb1204c4f0b [diff] [blame] |
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>
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 @@ 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) */