kernel/netgraph7: Replace usage of MALLOC/FREE with kmalloc/kfree here too.
[dragonfly.git] / sys / netgraph7 / bluetooth / l2cap / ng_l2cap_misc.h
index 87a1d87..d32f8dc 100644 (file)
@@ -77,7 +77,7 @@ do { \
        KASSERT(!callout_pending(&(cmd)->timo), ("Pending callout!")); \
        NG_FREE_M((cmd)->aux); \
        bzero((cmd), sizeof(*(cmd))); \
-       FREE((cmd), M_NETGRAPH_L2CAP); \
+       kfree((cmd), M_NETGRAPH_L2CAP); \
 } while (0)
 
 ng_l2cap_cmd_p ng_l2cap_new_cmd      (ng_l2cap_con_p, ng_l2cap_chan_p,