summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/ng_tty.c')
-rw-r--r--sys/netgraph/ng_tty.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netgraph/ng_tty.c b/sys/netgraph/ng_tty.c
index 492d21b..34105b2 100644
--- a/sys/netgraph/ng_tty.c
+++ b/sys/netgraph/ng_tty.c
@@ -156,9 +156,7 @@ ngt_constructor(node_p node)
sc_p sc;
/* Allocate private structure */
- 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_NODE_SET_PRIVATE(node, sc);
sc->node = node;
OpenPOWER on IntegriCloud