summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth/hci/ng_hci_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/bluetooth/hci/ng_hci_main.c')
-rw-r--r--sys/netgraph/bluetooth/hci/ng_hci_main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/netgraph/bluetooth/hci/ng_hci_main.c b/sys/netgraph/bluetooth/hci/ng_hci_main.c
index eeea79f..c5b3040 100644
--- a/sys/netgraph/bluetooth/hci/ng_hci_main.c
+++ b/sys/netgraph/bluetooth/hci/ng_hci_main.c
@@ -109,10 +109,7 @@ ng_hci_constructor(node_p node)
{
ng_hci_unit_p unit = NULL;
- unit = malloc(sizeof(*unit), M_NETGRAPH_HCI,
- M_NOWAIT | M_ZERO);
- if (unit == NULL)
- return (ENOMEM);
+ unit = malloc(sizeof(*unit), M_NETGRAPH_HCI, M_WAITOK | M_ZERO);
unit->node = node;
unit->debug = NG_HCI_WARN_LEVEL;
OpenPOWER on IntegriCloud