diff options
Diffstat (limited to 'sys/netgraph/ng_atmllc.c')
-rw-r--r-- | sys/netgraph/ng_atmllc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/netgraph/ng_atmllc.c b/sys/netgraph/ng_atmllc.c index 6498056..336d4b1 100644 --- a/sys/netgraph/ng_atmllc.c +++ b/sys/netgraph/ng_atmllc.c @@ -80,12 +80,7 @@ ng_atmllc_constructor(node_p node) { struct ng_atmllc_priv *priv; - priv = malloc(sizeof(*priv), M_NETGRAPH, - M_NOWAIT | M_ZERO); - if (priv == NULL) { - return (ENOMEM); - } - + priv = malloc(sizeof(*priv), M_NETGRAPH, M_WAITOK | M_ZERO); NG_NODE_SET_PRIVATE(node, priv); return (0); |