patch-2.1.40 linux/net/core/dev.c
Next file: linux/net/ipv4/ip_fragment.c
Previous file: linux/mm/slab.c
Back to the patch index
Back to the overall index
-  Lines: 19
-  Date:
Sun May 18 16:38:35 1997
-  Orig file: 
v2.1.39/linux/net/core/dev.c
-  Orig date: 
Wed Apr 23 19:01:29 1997
diff -u --recursive --new-file v2.1.39/linux/net/core/dev.c linux/net/core/dev.c
@@ -986,6 +986,9 @@
 	/*
 	 *	Loop over the interfaces, and write an info block for each. 
 	 */
+	 
+	dev_lock_wait();
+	dev_lock_list();
 
 	for (dev = dev_base; dev != NULL; dev = dev->next) 
 	{
@@ -1013,6 +1016,8 @@
 		len -= sizeof(struct ifreq);		
   	}
 
+	dev_unlock_list();
+	
 	/*
 	 *	All done.  Write the updated control block back to the caller. 
 	 */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov