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)
Wed, Nov 19, 10:09 PM
Unknown Object (File)
Tue, Nov 18, 8:09 PM
Unknown Object (File)
Sun, Nov 16, 6:33 AM
Unknown Object (File)
Wed, Oct 29, 4:55 PM
Unknown Object (File)
Wed, Oct 29, 4:50 PM
Unknown Object (File)
Wed, Oct 29, 4:49 PM
Unknown Object (File)
Wed, Oct 29, 4:49 PM
Unknown Object (File)
Wed, Oct 29, 9: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 Skipped
Unit
Tests Skipped