PERFORCE change 95945 for review

John Birrell jb at FreeBSD.org
Sun Apr 23 20:36:49 UTC 2006


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

Change 95945 by jb at jb_freebsd2 on 2006/04/23 20:36:14

	Match only the device name we want to clone.

Affected files ...

.. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_clone.c#3 edit

Differences ...

==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_clone.c#3 (text+ko) ====

@@ -37,6 +37,9 @@
 	if (*dev != NULL)
 		return;
 
+	if (strlen(name) != 6 || bcmp(name,"dtrace",6) != 0)
+		return;
+
 	/* Allocate a unique minor number. */
 	u = (int) vmem_alloc(dtrace_minor, 1, VM_BESTFIT | VM_SLEEP);
 


More information about the p4-projects mailing list