Fix a serious bug when computing the index for the

reference counter array for mbuf clusters.  I don't know
how this got past early testing nor how it survived so long
without getting caught.  If anyone was seeing really really
bizarre memory corruption in a few mbufs this would be why.
This commit is contained in:
Bosko Milekic 2003-02-20 03:01:04 +00:00
parent 9ec2814126
commit ec73437395

View File

@ -1059,7 +1059,7 @@ mb_reclaim(void)
} while (0)
#define cl2ref(cl) \
(((uintptr_t)(cl) - (uintptr_t)cl_refcntmap) >> MCLSHIFT)
(((uintptr_t)(cl) - (uintptr_t)mb_list_clust.ml_mapbase) >> MCLSHIFT)
#define _mext_dealloc_ref(m) \
if ((m)->m_ext.ext_type != EXT_EXTREF) \