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)
Tue, Nov 19, 2:39 PM
Unknown Object (File)
Tue, Nov 19, 2:17 PM
Unknown Object (File)
Oct 26 2024, 3:35 PM
Unknown Object (File)
Oct 18 2024, 8:15 PM
Unknown Object (File)
Oct 18 2024, 1:00 PM
Unknown Object (File)
Oct 5 2024, 6:07 AM
Unknown Object (File)
Oct 4 2024, 1:37 PM
Unknown Object (File)
Oct 2 2024, 9:00 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