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)
Sat, Jul 25, 4:17 PM
Unknown Object (File)
Sat, Jul 25, 3:03 PM
Unknown Object (File)
Sat, Jul 25, 8:58 AM
Unknown Object (File)
Fri, Jul 24, 9:17 AM
Unknown Object (File)
Tue, Jul 21, 6:37 PM
Unknown Object (File)
Jun 28 2026, 12:12 AM
Unknown Object (File)
Jun 19 2026, 12:00 PM
Unknown Object (File)
Jun 8 2026, 6:43 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