mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00: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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue