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, Oct 26, 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
Unknown Object (File)
Oct 1 2024, 10:41 PM
Unknown Object (File)
Sep 30 2024, 11:29 PM
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 Skipped
Unit
Tests Skipped