PERFORCE change 29006 for review
Robert Watson
rwatson at FreeBSD.org
Tue Apr 15 19:32:21 GMT 2003
http://perforce.freebsd.org/chv.cgi?CH=29006
Change 29006 by rwatson at rwatson_tislabs on 2003/04/15 12:32:01
mac_init_mbuf_tag() accepts malloc flags, not mbuf allocator
flags, so no need to map them.
Affected files ...
.. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#380 edit
Differences ...
==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#380 (text+ko) ====
@@ -783,13 +783,12 @@
mac_init_mbuf_tag(struct m_tag *tag, int flag)
{
struct label *label;
- int error, trflag;
+ int error;
label = (struct label *) (tag + 1);
mac_init_label(label);
- trflag = (flag == M_DONTWAIT ? M_NOWAIT : M_WAITOK);
- MAC_CHECK(init_mbuf_label, label, trflag);
+ MAC_CHECK(init_mbuf_label, label, flag);
if (error) {
MAC_PERFORM(destroy_mbuf_label, label);
mac_destroy_label(label);
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