diff options
Diffstat (limited to 'sys/netgraph/ng_split.c')
-rw-r--r-- | sys/netgraph/ng_split.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netgraph/ng_split.c b/sys/netgraph/ng_split.c index b4f2ee0..87a2cbc 100644 --- a/sys/netgraph/ng_split.c +++ b/sys/netgraph/ng_split.c @@ -85,9 +85,7 @@ ng_split_constructor(node_p node) priv_p priv; /* Allocate node */ - priv = malloc(sizeof(*priv), M_NETGRAPH, M_ZERO | M_NOWAIT); - if (priv == NULL) - return (ENOMEM); + priv = malloc(sizeof(*priv), M_NETGRAPH, M_ZERO | M_WAITOK); /* Link together node and private info */ NG_NODE_SET_PRIVATE(node, priv); |