patch-2.4.0-test2 linux/drivers/net/daynaport.c

Next file: linux/drivers/net/de4x5.c
Previous file: linux/drivers/net/cs89x0.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/drivers/net/daynaport.c linux/drivers/net/daynaport.c
@@ -633,6 +633,7 @@
 
 static int ns8390_open(struct net_device *dev)
 {
+	MOD_INC_USE_COUNT;
 	ei_open(dev);
 
 	/* At least on my card (a Focus Enhancements PDS card) I start */
@@ -644,10 +645,9 @@
 	if (request_irq(dev->irq, ei_interrupt, 0, "8390 Ethernet", dev)) 
 	{
 		printk ("%s: unable to get IRQ %d.\n", dev->name, dev->irq);
-		return EAGAIN;
+		MOD_DEC_USE_COUNT;
+		return -EAGAIN;
 	}
-	
-	MOD_INC_USE_COUNT;
 	return 0;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)