mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
Protect arg in macro M_ASSERTPKTHDR.
This commit is contained in:
parent
738489d1c1
commit
1083833205
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175342
@ -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