summaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_frame_relay.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2011-04-18 09:12:27 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2011-04-18 09:12:27 +0000
commit674d86bf9177ff80b5f38f7191951f303a816cac (patch)
tree93e5d9fb7956c5887fdf3d8f3617c0eca1887866 /sys/netgraph/ng_frame_relay.c
parentffbfc0aacb374ed604f7d77a9d5d4188c423b7aa (diff)
downloadsrc-test2-674d86bf9177ff80b5f38f7191951f303a816cac.tar.gz
src-test2-674d86bf9177ff80b5f38f7191951f303a816cac.zip
Notes
Diffstat (limited to 'sys/netgraph/ng_frame_relay.c')
-rw-r--r--sys/netgraph/ng_frame_relay.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netgraph/ng_frame_relay.c b/sys/netgraph/ng_frame_relay.c
index 670ef17a1b28..05c311d8d7b6 100644
--- a/sys/netgraph/ng_frame_relay.c
+++ b/sys/netgraph/ng_frame_relay.c
@@ -212,9 +212,7 @@ ngfrm_constructor(node_p node)
{
sc_p sc;
- sc = malloc(sizeof(*sc), M_NETGRAPH, M_NOWAIT | M_ZERO);
- if (!sc)
- return (ENOMEM);
+ sc = malloc(sizeof(*sc), M_NETGRAPH, M_WAITOK | M_ZERO);
sc->addrlen = 2; /* default */
/* Link the node and our private info */