Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 May 2006 05:19:31 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 97920 for review
Message-ID:  <200605270519.k4R5JV4F088459@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=97920

Change 97920 by jb@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605270519.k4R5JV4F088459>