mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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>
This commit is contained in:
parent
9426aedf7f
commit
a91db09ec0
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue