Protect arg in macro M_ASSERTPKTHDR.
This commit is contained in:
parent
738489d1c1
commit
1083833205
@ -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__))
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user