summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2000-09-21 17:33:33 +0000
committerarchie <archie@FreeBSD.org>2000-09-21 17:33:33 +0000
commit2ecfa84ffe04f743aceb5489b27662b68b563e18 (patch)
tree2689d72d9ed57607167a9a4334e17e397b0e6533 /sys/netgraph
parent878d7f2499e7a2f9817e11c882877596b0ef8ec5 (diff)
downloadFreeBSD-src-2ecfa84ffe04f743aceb5489b27662b68b563e18.zip
FreeBSD-src-2ecfa84ffe04f743aceb5489b27662b68b563e18.tar.gz
Allocate memory with M_NOWAIT instead of M_WAITOK because we could
be called in an interrupt context.
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_mppc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_mppc.c b/sys/netgraph/ng_mppc.c
index 3710058..5ab6c90 100644
--- a/sys/netgraph/ng_mppc.c
+++ b/sys/netgraph/ng_mppc.c
@@ -483,7 +483,7 @@ ng_mppc_compress(node_p node, struct mbuf *m, struct mbuf **resultp)
outlen = MPPC_MAX_BLOWUP(inlen);
else
outlen = MPPC_HDRLEN + inlen;
- MALLOC(outbuf, u_char *, outlen, M_NETGRAPH, M_WAITOK);
+ MALLOC(outbuf, u_char *, outlen, M_NETGRAPH, M_NOWAIT);
if (outbuf == NULL) {
FREE(inbuf, M_NETGRAPH);
return (ENOMEM);
OpenPOWER on IntegriCloud