2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-20 16:46:23 +08:00

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

View File

@ -481,8 +481,10 @@ static int ax_open(struct net_device *dev)
return ret; return ret;
ret = ax_ei_open(dev); ret = ax_ei_open(dev);
if (ret) if (ret) {
free_irq(dev->irq, dev);
return ret; return ret;
}
/* turn the phy on (if turned off) */ /* turn the phy on (if turned off) */