提交 9f1e7582 编写于 作者: K Kulikov Vasiliy 提交者: David S. Miller

ax88796: free irq on error

If ax_ei_open() failed we must free previously requested irq.
Signed-off-by: NKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册