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_cisco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netgraph/ng_cisco.c') diff --git a/sys/netgraph/ng_cisco.c b/sys/netgraph/ng_cisco.c index 0819169..4b62412 100644 --- a/sys/netgraph/ng_cisco.c +++ b/sys/netgraph/ng_cisco.c @@ -196,7 +196,7 @@ cisco_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(struct cisco_priv)); -- cgit v1.1