diff options
author | bmilekic <bmilekic@FreeBSD.org> | 2002-10-16 19:59:08 +0000 |
---|---|---|
committer | bmilekic <bmilekic@FreeBSD.org> | 2002-10-16 19:59:08 +0000 |
commit | efa86acc1166c9712497315471dd5e85090f4c43 (patch) | |
tree | 269d9973fdc7f531018a72b69981a341e48b06bb /sys/kern/subr_mbuf.c | |
parent | 2bb6ef9a3f703f5e4ce9650638cad001d0e9d3f8 (diff) | |
download | FreeBSD-src-efa86acc1166c9712497315471dd5e85090f4c43.zip FreeBSD-src-efa86acc1166c9712497315471dd5e85090f4c43.tar.gz |
Fix a fairly subtle bug in mbuf_init() where the reference counter
contiguous space was being allocated from the clust_map
instead of the mbuf_map as the comments indicated. This resulted in
some address space wastage in mbuf_map.
Submitted by: Rohit Jalan <rohjal@yahoo.co.in>
Diffstat (limited to 'sys/kern/subr_mbuf.c')
-rw-r--r-- | sys/kern/subr_mbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_mbuf.c b/sys/kern/subr_mbuf.c index 87b9da6..fb0d626 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; |