From 2ecfa84ffe04f743aceb5489b27662b68b563e18 Mon Sep 17 00:00:00 2001 From: archie Date: Thu, 21 Sep 2000 17:33:33 +0000 Subject: Allocate memory with M_NOWAIT instead of M_WAITOK because we could be called in an interrupt context. --- sys/netgraph/ng_mppc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netgraph/ng_mppc.c') 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); -- cgit v1.1