Page MenuHomeFreeBSD

sys/sysctl.h: Fix wrong assertion with multiple access flags
ClosedPublic

Authored by zlei on Jun 7 2024, 4:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 17, 4:08 AM
Unknown Object (File)
Fri, Mar 7, 9:15 PM
Unknown Object (File)
Wed, Mar 5, 10:01 PM
Unknown Object (File)
Feb 22 2025, 2:27 PM
Unknown Object (File)
Feb 22 2025, 1:52 PM
Unknown Object (File)
Feb 22 2025, 1:43 PM
Unknown Object (File)
Feb 15 2025, 9:40 AM
Unknown Object (File)
Feb 10 2025, 11:40 AM
Subscribers

Details

Summary

With multiple flags passed in, e.g., CTLFLAG_RD | CTLFLAG_CAPRD, due to
the precedence rules, this will result in false positive assertion. Fix
that by surrounding the replacement lists with parentheses.

Fixes: 10a1e981d411 iflib: mark isc_driver_version as constant
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable