diff options
Diffstat (limited to 'sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c')
-rw-r--r-- | sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c b/sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c index 7d5b300..23c6b01 100644 --- a/sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c +++ b/sys/netgraph/bluetooth/l2cap/ng_l2cap_main.c @@ -113,7 +113,7 @@ ng_l2cap_constructor(node_p node) ng_l2cap_p l2cap = NULL; /* Create new L2CAP node */ - MALLOC(l2cap, ng_l2cap_p, sizeof(*l2cap), + l2cap = malloc(sizeof(*l2cap), M_NETGRAPH_L2CAP, M_NOWAIT|M_ZERO); if (l2cap == NULL) return (ENOMEM); @@ -148,7 +148,7 @@ ng_l2cap_shutdown(node_p node) ng_l2cap_cleanup(l2cap); bzero(l2cap, sizeof(*l2cap)); - FREE(l2cap, M_NETGRAPH_L2CAP); + free(l2cap, M_NETGRAPH_L2CAP); return (0); } /* ng_l2cap_shutdown */ |