PERFORCE change 97920 for review

John Birrell jb at FreeBSD.org
Fri May 26 22:20:40 PDT 2006


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

Change 97920 by jb at jb_freebsd2 on 2006/05/27 05:19:21

	Zero allocated memory. This might be superstition, but I don't want
	to have to deal with crashes caused by garbage in allocated memory.

Affected files ...

.. //depot/projects/dtrace/src/sys/cddl/kern/cyclic.c#3 edit

Differences ...

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

@@ -2153,7 +2153,7 @@
 		 * (which is the appropriate sizemask for a size of 1).
 		 */
 		cpu->cyp_softbuf[i].cys_buf[0].cypc_buf =
-		    kmem_alloc(sizeof (cyc_index_t), KM_SLEEP);
+		    kmem_zalloc(sizeof (cyc_index_t), KM_SLEEP);
 	}
 
 	cpu->cyp_state = CYS_OFFLINE;


More information about the p4-projects mailing list