Commit 9f1e7582 authored by Kulikov Vasiliy's avatar Kulikov Vasiliy Committed by David S. Miller

ax88796: free irq on error

If ax_ei_open() failed we must free previously requested irq.
Signed-off-by: default avatarKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3038bdb1
......@@ -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) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment