Allocate memory with M_NOWAIT instead of M_WAITOK because we could
be called in an interrupt context.
This commit is contained in:
parent
9d90941a83
commit
840f71272d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user