summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_mppc.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-12-05 08:04:20 +0000
committerglebius <glebius@FreeBSD.org>2012-12-05 08:04:20 +0000
commit8e20fa5ae93243e19700ca06c01524b90fe3b784 (patch)
treebf083a0829f8044362fc83354c8e8b60d1f7932a /sys/netgraph/ng_mppc.c
parentd0604243f84872a5dd39fc735ebcdb4fbe1b6bb5 (diff)
downloadFreeBSD-src-8e20fa5ae93243e19700ca06c01524b90fe3b784.zip
FreeBSD-src-8e20fa5ae93243e19700ca06c01524b90fe3b784.tar.gz
Mechanically substitute flags from historic mbuf allocator with
malloc(9) flags within sys. Exceptions: - sys/contrib not touched - sys/mbuf.h edited manually
Diffstat (limited to 'sys/netgraph/ng_mppc.c')
-rw-r--r--sys/netgraph/ng_mppc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netgraph/ng_mppc.c b/sys/netgraph/ng_mppc.c
index 6754be7..ddf97d1 100644
--- a/sys/netgraph/ng_mppc.c
+++ b/sys/netgraph/ng_mppc.c
@@ -467,7 +467,7 @@ ng_mppc_compress(node_p node, struct mbuf **datap)
struct mbuf *m = *datap;
/* We must own the mbuf chain exclusively to modify it. */
- m = m_unshare(m, M_DONTWAIT);
+ m = m_unshare(m, M_NOWAIT);
if (m == NULL)
return (ENOMEM);
@@ -595,7 +595,7 @@ err1:
MPPC_CCOUNT_INC(d->cc);
/* Install header */
- M_PREPEND(m, MPPC_HDRLEN, M_DONTWAIT);
+ M_PREPEND(m, MPPC_HDRLEN, M_NOWAIT);
if (m != NULL)
be16enc(mtod(m, void *), header);
@@ -617,7 +617,7 @@ ng_mppc_decompress(node_p node, struct mbuf **datap)
struct mbuf *m = *datap;
/* We must own the mbuf chain exclusively to modify it. */
- m = m_unshare(m, M_DONTWAIT);
+ m = m_unshare(m, M_NOWAIT);
if (m == NULL)
return (ENOMEM);
OpenPOWER on IntegriCloud