From 1023c32e1a3679b96f5d97f326b05c06529b214c Mon Sep 17 00:00:00 2001 From: archie Date: Thu, 21 Sep 2000 18:01:23 +0000 Subject: Allocate all memory (including within node constructors) with M_NOWAIT instead of M_WAITOK, to allow for maximum flexibility. --- sys/netgraph/ng_lmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netgraph/ng_lmi.c') diff --git a/sys/netgraph/ng_lmi.c b/sys/netgraph/ng_lmi.c index 775c3b8..e8c1de1 100644 --- a/sys/netgraph/ng_lmi.c +++ b/sys/netgraph/ng_lmi.c @@ -190,7 +190,7 @@ nglmi_constructor(node_p *nodep) sc_p sc; int error = 0; - MALLOC(sc, sc_p, sizeof(*sc), M_NETGRAPH, M_WAITOK); + MALLOC(sc, sc_p, sizeof(*sc), M_NETGRAPH, M_NOWAIT); if (sc == NULL) return (ENOMEM); bzero(sc, sizeof(*sc)); -- cgit v1.1