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>
This commit is contained in:
Kulikov Vasiliy 2010-07-08 23:42:40 -07:00 committed by David S. Miller
parent 3038bdb122
commit 9f1e758274
1 changed files with 3 additions and 1 deletions

View File

@ -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) */