1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00

Fix KASSERT in m_free_fast - the LIST_EMPTY check only applies to packet headers.

In the non packet header case there may be data there.
This commit is contained in:
Kip Macy 2008-01-09 06:29:49 +00:00
parent fc2d483ef5
commit f8c9ad8f51
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175170

View File

@ -496,8 +496,11 @@ m_getjcl(int how, short type, int flags, int size)
static __inline void
m_free_fast(struct mbuf *m)
{
KASSERT(SLIST_EMPTY(&m->m_pkthdr.tags), ("doing fast free of mbuf with tags"));
#ifdef INVARIANTS
if (m->m_flags & M_PKTHDR)
KASSERT(SLIST_EMPTY(&m->m_pkthdr.tags), ("doing fast free of mbuf with tags"));
#endif
uma_zfree_arg(zone_mbuf, m, (void *)MB_NOTAGS);
}