patch-2.2.3 linux/drivers/net/8390.c
Next file: linux/drivers/net/Makefile
Previous file: linux/drivers/char/videodev.c
Back to the patch index
Back to the overall index
-  Lines: 12
 -  Date:
Wed Feb 24 16:27:53 1999
 -  Orig file: 
v2.2.2/linux/drivers/net/8390.c
 -  Orig date: 
Fri Jan  8 22:36:06 1999
 
diff -u --recursive --new-file v2.2.2/linux/drivers/net/8390.c linux/drivers/net/8390.c
@@ -165,8 +165,10 @@
       
       	spin_lock_irqsave(&ei_local->page_lock, flags);
 	NS8390_init(dev, 1);
-      	spin_unlock_irqrestore(&ei_local->page_lock, flags);
+	/* Set the flag before we drop the lock, That way the IRQ arrives
+	   after its set and we get no silly warnings */
 	dev->start = 1;
+      	spin_unlock_irqrestore(&ei_local->page_lock, flags);
 	ei_local->irqlock = 0;
 	return 0;
 }
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)