Allocate memory with M_NOWAIT instead of M_WAITOK because we could

be called in an interrupt context.
This commit is contained in:
Archie Cobbs 2000-09-21 17:33:33 +00:00
parent 9d90941a83
commit 840f71272d

View File

@ -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);