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:
parent
3038bdb122
commit
9f1e758274
@ -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) */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user