diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2011-04-18 09:12:27 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2011-04-18 09:12:27 +0000 |
| commit | 674d86bf9177ff80b5f38f7191951f303a816cac (patch) | |
| tree | 93e5d9fb7956c5887fdf3d8f3617c0eca1887866 /sys/netgraph/ng_device.c | |
| parent | ffbfc0aacb374ed604f7d77a9d5d4188c423b7aa (diff) | |
Notes
Diffstat (limited to 'sys/netgraph/ng_device.c')
| -rw-r--r-- | sys/netgraph/ng_device.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netgraph/ng_device.c b/sys/netgraph/ng_device.c index eb094bef2ace..b8c339cd933a 100644 --- a/sys/netgraph/ng_device.c +++ b/sys/netgraph/ng_device.c @@ -163,9 +163,7 @@ ng_device_constructor(node_p node) DBG; - 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); /* Allocate unit number */ priv->unit = alloc_unr(ngd_unit); |
