Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Apr 2006 06:41:51 GMT
From:      John-Mark Gurney <jmg@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 94795 for review
Message-ID:  <200604080641.k386fpGm020495@repoman.freebsd.org>

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

Change 94795 by jmg@jmg_arlene on 2006/04/08 06:41:23

	zero memory, mtx_init can fail thinking it's already initalized
	even though it isn't...

Affected files ...

.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hviommu.c#5 edit

Differences ...

==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hviommu.c#5 (text+ko) ====

@@ -207,7 +207,7 @@
 	struct hviommu *him;
 	u_long end;
 
-	him = malloc(sizeof *him, M_HVIOMMU, M_WAITOK);
+	him = malloc(sizeof *him, M_HVIOMMU, M_WAITOK|M_ZERO);
 
 	mtx_init(&him->him_mtx, "hviommu", NULL, MTX_DEF);
 	him->him_handle = dh;



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