Protect arg in macro M_ASSERTPKTHDR.

This commit is contained in:
yongari 2008-01-15 04:00:12 +00:00
parent 193472a6f6
commit dea5febad5

View File

@ -634,7 +634,7 @@ m_last(struct mbuf *m)
/* Check if the supplied mbuf has a packet header, or else panic. */
#define M_ASSERTPKTHDR(m) \
KASSERT(m != NULL && m->m_flags & M_PKTHDR, \
KASSERT((m) != NULL && (m)->m_flags & M_PKTHDR, \
("%s: no mbuf packet header!", __func__))
/*