Skip to content

Commit 744cc51

Browse files
committed
mbuf: Parenthesize macro arguments
MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: NetApp, Inc.
1 parent 70509d1 commit 744cc51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sys/sys/mbuf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ m_extrefcnt(struct mbuf *m)
11691169
* XXX: Broken at the moment. Need some UMA magic to make it work again.
11701170
*/
11711171
#define M_ASSERTVALID(m) \
1172-
KASSERT((((struct mbuf *)m)->m_flags & 0) == 0, \
1172+
KASSERT((((struct mbuf *)(m))->m_flags & 0) == 0, \
11731173
("%s: attempted use of a free mbuf %p!", __func__, (m)))
11741174

11751175
/* Check whether any mbuf in the chain is unmapped. */

0 commit comments

Comments
 (0)