summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-03-26 14:08:14 +0000
committerglebius <glebius@FreeBSD.org>2013-03-26 14:08:14 +0000
commitd7ec6be5b684d752ac5e1385e4f770ad20869888 (patch)
tree478eae4cf0209c8f9343839700a04f19f0d86722 /sys/netgraph
parentea494f6542a8b09aef451648e1d219b4cfe14769 (diff)
downloadFreeBSD-src-d7ec6be5b684d752ac5e1385e4f770ad20869888.zip
FreeBSD-src-d7ec6be5b684d752ac5e1385e4f770ad20869888.tar.gz
Return ENOMEM if malloc() fails.
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/netflow/netflow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/netflow/netflow.c b/sys/netgraph/netflow/netflow.c
index a0e8535..f230616 100644
--- a/sys/netgraph/netflow/netflow.c
+++ b/sys/netgraph/netflow/netflow.c
@@ -574,7 +574,7 @@ ng_netflow_fib_init(priv_p priv, int fib)
if ((fe = malloc(sizeof(struct fib_export), M_NETGRAPH,
M_NOWAIT | M_ZERO)) == NULL)
- return (1);
+ return (ENOMEM);
mtx_init(&fe->export_mtx, "export dgram lock", NULL, MTX_DEF);
mtx_init(&fe->export9_mtx, "export9 dgram lock", NULL, MTX_DEF);
OpenPOWER on IntegriCloud