Allocate memory with M_NOWAIT instead of M_WAITOK because we could

be called in an interrupt context.
This commit is contained in:
archie 2000-09-21 17:33:33 +00:00
parent 878d7f2499
commit 2ecfa84ffe

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