summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_vlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/ng_vlan.c')
-rw-r--r--sys/netgraph/ng_vlan.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netgraph/ng_vlan.c b/sys/netgraph/ng_vlan.c
index bd29929..f9de94f 100644
--- a/sys/netgraph/ng_vlan.c
+++ b/sys/netgraph/ng_vlan.c
@@ -161,9 +161,7 @@ ng_vlan_constructor(node_p node)
priv_p priv;
int i;
- 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);
for (i = 0; i < HASHSIZE; i++)
LIST_INIT(&priv->hashtable[i]);
NG_NODE_SET_PRIVATE(node, priv);
OpenPOWER on IntegriCloud