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:
parent
fc2d483ef5
commit
f8c9ad8f51
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175170
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user