Date: Sat, 15 Nov 2003 18:48:30 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 42506 for review Message-ID: <200311160248.hAG2mUYU025648@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=42506 Change 42506 by rwatson@rwatson_tislabs on 2003/11/15 18:47:44 Pass M_ZERO to uma_zalloc() not uma_zcreate(). Affected files ... .. //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#234 edit .. //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#188 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#234 (text+ko) ==== @@ -148,7 +148,7 @@ biba_alloc(int flag) { - return (uma_zalloc(zone_biba, flag)); + return (uma_zalloc(zone_biba, flag | M_ZERO)); } static void @@ -498,7 +498,7 @@ { zone_biba = uma_zcreate("mac_biba", sizeof(struct mac_biba), NULL, - NULL, NULL, NULL, UMA_ALIGN_PTR, M_ZERO); + NULL, NULL, NULL, UMA_ALIGN_PTR, 0); } /* ==== //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#188 (text+ko) ==== @@ -136,7 +136,7 @@ mls_alloc(int flag) { - return (uma_zalloc(zone_mls, flag)); + return (uma_zalloc(zone_mls, flag | M_ZERO)); } static void @@ -463,7 +463,7 @@ { zone_mls = uma_zcreate("mac_mls", sizeof(struct mac_mls), NULL, - NULL, NULL, NULL, UMA_ALIGN_PTR, M_ZERO); + NULL, NULL, NULL, UMA_ALIGN_PTR, 0); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311160248.hAG2mUYU025648>