PERFORCE change 113077 for review

Roman Divacky rdivacky at FreeBSD.org
Wed Jan 17 22:34:18 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=113077

Change 113077 by rdivacky at rdivacky_witten on 2007/01/17 22:33:40

	Dont expose em->shared to the outside world before its properly 
	initialized. Might not affect anything but its at least a better
	coding style.

Affected files ...

.. //depot/projects/linuxolator/src/sys/compat/linux/linux_emul.c#21 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/compat/linux/linux_emul.c#21 (text+ko) ====

@@ -91,11 +91,11 @@
 			struct linux_emuldata_shared *s;
 
 			s = malloc(sizeof *s, M_LINUX, M_WAITOK | M_ZERO);
-			em->shared = s;
 			s->refs = 1;
 			s->group_pid = child;
 
 			LIST_INIT(&s->threads);
+			em->shared = s;
 		}
 		p = pfind(child);
 		KASSERT(p != NULL, ("process not found in proc_init\n"));


More information about the p4-projects mailing list