diff options
Diffstat (limited to 'sys/netgraph/ng_ether.c')
-rw-r--r-- | sys/netgraph/ng_ether.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index 115f3cf..9bcd374 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -292,7 +292,7 @@ ng_ether_attach(struct ifnet *ifp) } /* Allocate private data */ - MALLOC(priv, priv_p, sizeof(*priv), M_NETGRAPH, M_NOWAIT | M_ZERO); + priv = malloc(sizeof(*priv), M_NETGRAPH, M_NOWAIT | M_ZERO); if (priv == NULL) { log(LOG_ERR, "%s: can't %s for %s\n", __func__, "allocate memory", ifp->if_xname); @@ -683,7 +683,7 @@ ng_ether_shutdown(node_p node) * Assume the ifp has already been freed. */ NG_NODE_SET_PRIVATE(node, NULL); - FREE(priv, M_NETGRAPH); + free(priv, M_NETGRAPH); NG_NODE_UNREF(node); /* free node itself */ return (0); } |