PERFORCE change 94795 for review

John-Mark Gurney jmg at FreeBSD.org
Sat Apr 8 06:41:52 UTC 2006


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

Change 94795 by jmg at 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;


More information about the p4-projects mailing list