Protect arg in macro M_ASSERTPKTHDR.

This commit is contained in:
Pyun YongHyeon 2008-01-15 04:00:12 +00:00
parent 738489d1c1
commit 1083833205

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__))
/*