diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-04-15 19:33:23 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-04-15 19:33:23 +0000 |
commit | ee9586205424c714206cac19273ca20ce51452cc (patch) | |
tree | cae7c3a765d58624d374a9347a9fbbd5bcd6c2b4 /sys/kern | |
parent | 07a0e2efde73a7d736dd8f2e042781df95cd0823 (diff) | |
download | FreeBSD-src-ee9586205424c714206cac19273ca20ce51452cc.zip FreeBSD-src-ee9586205424c714206cac19273ca20ce51452cc.tar.gz |
mac_init_mbuf_tag() accepts malloc flags, not mbuf allocator flags, so
don't try and convert the argument flags to malloc flags, or we risk
implicitly requesting blocking and generating witness warnings.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_mac.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_mac.c b/sys/kern/kern_mac.c index 2650874..8524c0c 100644 --- a/sys/kern/kern_mac.c +++ b/sys/kern/kern_mac.c @@ -783,13 +783,12 @@ int 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); |