git: fbe0d8aa64b3 - releng/14.5 - mbuf: Parenthesize macro arguments
Colin Percival <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.src |
|---|---|
| Message-ID | <6a7d0b1a.1cd32.2f254832__41446.2163623952$1786579759$gmane$org@gitrepo.freebsd.org> |
The branch releng/14.5 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=fbe0d8aa64b3b0e283011079d136e8b987c046c3 commit fbe0d8aa64b3b0e283011079d136e8b987c046c3 Author: Dag-Erling Smørgrav <[email protected]> AuthorDate: 2026-07-28 12:08:48 +0000 Commit: Colin Percival <[email protected]> CommitDate: 2026-08-13 00:08:37 +0000 mbuf: Parenthesize macro arguments Approved by: re (cperciva) MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: NetApp, Inc. (cherry picked from commit 744cc514567d33d38986f0ff7de009f786acc180) (cherry picked from commit 7d8fc2a82bfbfc3ad313ae72bfa72851c342eaf2) --- 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 23b6c0de3d1a..6d9fe4c9cece 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -1167,7 +1167,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. */