PERFORCE change 113343 for review

Todd Miller millert at FreeBSD.org
Mon Jan 22 16:02:49 UTC 2007


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

Change 113343 by millert at millert_macbook on 2007/01/22 16:01:43

	Ports returned by ipc_port_alloc_kernel() are not locked.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/osfmk/ipc/ipc_labelh.c#10 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/osfmk/ipc/ipc_labelh.c#10 (text+ko) ====

@@ -122,9 +122,6 @@
 	lh->lh_port = ipc_port_alloc_kernel();
 	lh->lh_type = LABELH_TYPE_KERN;
 	lh->lh_references = 1;
-	ip_unlock(lh->lh_port);
-
-	/* Must call ipc_kobject_set() with port unlocked. */
 	ipc_kobject_set(lh->lh_port, (ipc_kobject_t)lh, IKOT_LABELH);
 
 	return (lh);


More information about the trustedbsd-cvs mailing list