From: Kulikov Vasiliy Date: Fri, 9 Jul 2010 06:42:40 +0000 (-0700) Subject: ax88796: free irq on error X-Git-Tag: MMI-PSA29.97-13-9~23092^2~301 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f1e7582749980b51da67671b2536aadca3596b8;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ax88796: free irq on error If ax_ei_open() failed we must free previously requested irq. Signed-off-by: Kulikov Vasiliy Signed-off-by: David S. Miller --- diff --git a/drivers/net/ax88796.c b/drivers/net/ax88796.c index 55c9958043c4..20e946b1e744 100644 --- a/drivers/net/ax88796.c +++ b/drivers/net/ax88796.c @@ -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) */