mbuf: make M_ASSERT_NO_SND_TAG() as strict as other similar asserts

Fixes:	17cbcf33c3
This commit is contained in:
Gleb Smirnoff
2022-01-27 09:41:31 -08:00
parent 4669f23ef7
commit f59fa11280
+1 -1
View File
@@ -1147,7 +1147,7 @@ m_extrefcnt(struct mbuf *m)
/* Check if the supplied mbuf has no send tag, or else panic. */
#define M_ASSERT_NO_SND_TAG(m) \
KASSERT((m) == NULL || ((m)->m_flags & M_PKTHDR) == 0 || \
KASSERT((m) != NULL && (m)->m_flags & M_PKTHDR && \
((m)->m_pkthdr.csum_flags & CSUM_SND_TAG) == 0, \
("%s: receive mbuf has send tag!", __func__))