r1565 - in trunk: . linux

jim at linuxfromscratch.org jim at linuxfromscratch.org
Mon Jun 19 23:13:01 PDT 2006


Author: jim
Date: 2006-06-20 00:13:00 -0600 (Tue, 20 Jun 2006)
New Revision: 1565

Added:
   trunk/linux/linux-2.6.16.7-udev_race-1.patch
Modified:
   trunk/
Log:
 r1753 at server:  jim | 2006-06-19 23:12:26 -0700
 Readded: linux-2.6.16.7-udev_race-1.patch



Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - cc2644d5-6cf8-0310-b111-c40428001e49:/patches:1710
e59974df-c20a-0410-b7e1-d7eaf1be8828:/patches:1751
   + cc2644d5-6cf8-0310-b111-c40428001e49:/patches:1710
e59974df-c20a-0410-b7e1-d7eaf1be8828:/patches:1753

Added: trunk/linux/linux-2.6.16.7-udev_race-1.patch
===================================================================
--- trunk/linux/linux-2.6.16.7-udev_race-1.patch	                        (rev 0)
+++ trunk/linux/linux-2.6.16.7-udev_race-1.patch	2006-06-20 06:13:00 UTC (rev 1565)
@@ -0,0 +1,23 @@
+Submitted By: Archaic (archaic -aT- linuxfromscratch -DoT- org)
+Date: 2006-04-17
+Initial Package Version: 2.6.16.5
+Origin: http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=9469d458b90bfb9117cbb488cfa645d94c3921b1
+Upstream Status: Applied
+Description: Fixes a race condition during device registration.
+
+diff -Naur linux-2.6.16.5.orig/net/core/dev.c linux-2.6.16.5/net/core/dev.c
+--- linux-2.6.16.5.orig/net/core/dev.c	2006-04-12 20:27:57.000000000 +0000
++++ linux-2.6.16.5/net/core/dev.c	2006-04-17 20:59:42.000000000 +0000
+@@ -2932,11 +2932,11 @@
+ 
+ 		switch(dev->reg_state) {
+ 		case NETREG_REGISTERING:
++			dev->reg_state = NETREG_REGISTERED;
+ 			err = netdev_register_sysfs(dev);
+ 			if (err)
+ 				printk(KERN_ERR "%s: failed sysfs registration (%d)\n",
+ 				       dev->name, err);
+-			dev->reg_state = NETREG_REGISTERED;
+ 			break;
+ 
+ 		case NETREG_UNREGISTERING:




More information about the patches mailing list