git: bcee81bcf1b0 - stable/15 - mbuf: Parenthesize macro arguments

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Fri, 07 Aug 2026 15:50:03 UTC
The branch stable/15 has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=bcee81bcf1b0599bf90238714440e8b4b5ec39c7

commit bcee81bcf1b0599bf90238714440e8b4b5ec39c7
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-07-28 12:08:48 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-08-07 15:44:36 +0000

    mbuf: Parenthesize macro arguments
    
    MFC after:      1 week
    Sponsored by:   Klara, Inc.
    Sponsored by:   NetApp, Inc.
    
    (cherry picked from commit 744cc514567d33d38986f0ff7de009f786acc180)
---
 sys/sys/mbuf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index cba7702c6ebb..cd031d5d1a82 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -1166,7 +1166,7 @@ m_extrefcnt(struct mbuf *m)
  * XXX: Broken at the moment.  Need some UMA magic to make it work again.
  */
 #define	M_ASSERTVALID(m)						\
-	KASSERT((((struct mbuf *)m)->m_flags & 0) == 0,			\
+	KASSERT((((struct mbuf *)(m))->m_flags & 0) == 0,			\
 	    ("%s: attempted use of a free mbuf %p!", __func__, (m)))
 
 /* Check whether any mbuf in the chain is unmapped. */