diff options
Diffstat (limited to 'sys/netgraph/ng_cisco.c')
-rw-r--r-- | sys/netgraph/ng_cisco.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netgraph/ng_cisco.c b/sys/netgraph/ng_cisco.c index 785b055..76dc1ec 100644 --- a/sys/netgraph/ng_cisco.c +++ b/sys/netgraph/ng_cisco.c @@ -193,9 +193,7 @@ cisco_constructor(node_p node) { sc_p sc; - sc = malloc(sizeof(*sc), M_NETGRAPH, M_NOWAIT | M_ZERO); - if (sc == NULL) - return (ENOMEM); + sc = malloc(sizeof(*sc), M_NETGRAPH, M_WAITOK | M_ZERO); ng_callout_init(&sc->handle); NG_NODE_SET_PRIVATE(node, sc); |