summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/atm/uni/ng_uni.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2011-04-18 09:12:27 +0000
committerglebius <glebius@FreeBSD.org>2011-04-18 09:12:27 +0000
commit6c78a88c3bb5f7c87b56f79915289532c9997f86 (patch)
tree93e5d9fb7956c5887fdf3d8f3617c0eca1887866 /sys/netgraph/atm/uni/ng_uni.c
parent636bed78e5bc6ab20edda6b6d287c8fb8a71476f (diff)
downloadFreeBSD-src-6c78a88c3bb5f7c87b56f79915289532c9997f86.zip
FreeBSD-src-6c78a88c3bb5f7c87b56f79915289532c9997f86.tar.gz
Node constructor methods are supposed to be called in syscall
context always. Convert nodes to consistently use M_WAITOK flag for memory allocation. Reviewed by: julian
Diffstat (limited to 'sys/netgraph/atm/uni/ng_uni.c')
-rw-r--r--sys/netgraph/atm/uni/ng_uni.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netgraph/atm/uni/ng_uni.c b/sys/netgraph/atm/uni/ng_uni.c
index 5b2a7ff..2fc9599 100644
--- a/sys/netgraph/atm/uni/ng_uni.c
+++ b/sys/netgraph/atm/uni/ng_uni.c
@@ -223,8 +223,7 @@ ng_uni_constructor(node_p node)
{
struct priv *priv;
- if ((priv = malloc(sizeof(*priv), M_NG_UNI, M_NOWAIT | M_ZERO)) == NULL)
- return (ENOMEM);
+ priv = malloc(sizeof(*priv), M_NG_UNI, M_WAITOK | M_ZERO);
if ((priv->uni = uni_create(node, &uni_funcs)) == NULL) {
free(priv, M_NG_UNI);
OpenPOWER on IntegriCloud