diff --git a/sys/kern/subr_mbuf.c b/sys/kern/subr_mbuf.c index 87b9da65f6bb..fb0d6261f27e 100644 --- a/sys/kern/subr_mbuf.c +++ b/sys/kern/subr_mbuf.c @@ -418,7 +418,7 @@ mbuf_init(void *dummy) * Allocate all the required counters for clusters. This makes * cluster allocations/deallocations much faster. */ - cl_refcntmap = (u_int *)kmem_malloc(mb_list_clust.ml_map, + cl_refcntmap = (u_int *)kmem_malloc(mb_list_mbuf.ml_map, roundup(nmbclusters * sizeof(u_int), MSIZE), M_NOWAIT); if (cl_refcntmap == NULL) goto bad;