Skip to contentSkip to conversation

ax88796: free irq on error

PATCH Applied Kulikov Vasiliy 2 participants 2 messages Jul 8, 2010 – Jul 9, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 ax88796: free irq on error

If ax_ei_open() failed we must free previously requested irq.

---
 drivers/net/ax88796.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/net/ax88796.c +3 -1
index 55c9958..20e946b 100644
@@ -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) */
 
Signature · 1 line
1.7.0.4