From a71cbd17a216f55263d1723be2042e3a03172c9d Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Wed, 12 Nov 2008 11:03:28 +0000 Subject: [PATCH] Allocate if_start_nmsg from M_LWKTMSG --- sys/net/if.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/net/if.c b/sys/net/if.c index 25b56ca15c..50ad0c8088 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -32,7 +32,7 @@ * * @(#)if.c 8.3 (Berkeley) 1/4/94 * $FreeBSD: src/sys/net/if.c,v 1.185 2004/03/13 02:35:03 brooks Exp $ - * $DragonFly: src/sys/net/if.c,v 1.82 2008/11/11 13:48:01 sephe Exp $ + * $DragonFly: src/sys/net/if.c,v 1.83 2008/11/12 11:03:28 sephe Exp $ */ #include "opt_compat.h" @@ -450,7 +450,7 @@ if_attach(struct ifnet *ifp, lwkt_serialize_t serializer) #endif ifp->if_start_nmsg = kmalloc(ncpus * sizeof(struct netmsg), - M_IFADDR /* XXX */, M_WAITOK); + M_LWKTMSG, M_WAITOK); for (i = 0; i < ncpus; ++i) { netmsg_init(&ifp->if_start_nmsg[i], &netisr_adone_rport, 0, if_start_dispatch); @@ -732,7 +732,7 @@ if_detach(struct ifnet *ifp) TAILQ_REMOVE(&ifnet, ifp, if_link); kfree(ifp->if_addrheads, M_IFADDR); - kfree(ifp->if_start_nmsg, M_IFADDR); + kfree(ifp->if_start_nmsg, M_LWKTMSG); crit_exit(); } -- 2.41.0