Skip to content

Commit

Permalink
ax88796: free irq on error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kulikov Vasiliy authored and David S. Miller committed Jul 9, 2010
1 parent 3038bdb commit 9f1e758
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/ax88796.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */

Expand Down

0 comments on commit 9f1e758

Please sign in to comment.