X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/447003570d8f7371a7f81b676e27a00aa3f33cc9..fc025606753a07c5a63d0d6b7d389182b49074f4:/sys/netgraph7/bluetooth/drivers/h4/ng_h4.c diff --git a/sys/netgraph7/bluetooth/drivers/h4/ng_h4.c b/sys/netgraph7/bluetooth/drivers/h4/ng_h4.c index 82412a81d4..b0032ca90d 100644 --- a/sys/netgraph7/bluetooth/drivers/h4/ng_h4.c +++ b/sys/netgraph7/bluetooth/drivers/h4/ng_h4.c @@ -162,7 +162,7 @@ ng_h4_open(struct cdev *dev, struct tty *tp) return (error); /* Initialize private struct */ - MALLOC(sc, ng_h4_info_p, sizeof(*sc), M_NETGRAPH_H4, M_WAITOK | M_NULLOK | M_ZERO); + sc = kmalloc(sizeof(*sc), M_NETGRAPH_H4, M_WAITOK | M_NULLOK | M_ZERO); if (sc == NULL) return (ENOMEM); @@ -189,7 +189,7 @@ ng_h4_open(struct cdev *dev, struct tty *tp) mtx_destroy(&sc->outq.ifq_mtx); bzero(sc, sizeof(*sc)); - FREE(sc, M_NETGRAPH_H4); + kfree(sc, M_NETGRAPH_H4); lwkt_reltoken(&tty_token); return (error); @@ -207,7 +207,7 @@ ng_h4_open(struct cdev *dev, struct tty *tp) NG_NODE_UNREF(sc->node); mtx_destroy(&sc->outq.ifq_mtx); bzero(sc, sizeof(*sc)); - FREE(sc, M_NETGRAPH_H4); + kfree(sc, M_NETGRAPH_H4); lwkt_reltoken(&tty_token); return (error); @@ -786,7 +786,7 @@ ng_h4_shutdown(node_p node) NG_NODE_UNREF(node); mtx_destroy(&sc->outq.ifq_mtx); bzero(sc, sizeof(*sc)); - FREE(sc, M_NETGRAPH_H4); + kfree(sc, M_NETGRAPH_H4); return (0); } /* ng_h4_shutdown */