PERFORCE change 42506 for review
Robert Watson
rwatson at FreeBSD.org
Sun Nov 16 02:48:30 GMT 2003
http://perforce.freebsd.org/chv.cgi?CH=42506
Change 42506 by rwatson at 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);
}
/*
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list