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
F97721111: D45531.id139646.diff
Mon, Sep 30, 11:29 PM
F97715716: D45531.diff
Mon, Sep 30, 10:47 PM
Unknown Object (File)
Fri, Sep 20, 8:44 AM
Unknown Object (File)
Wed, Sep 18, 3:07 AM
Unknown Object (File)
Tue, Sep 3, 8:08 AM
Unknown Object (File)
Sep 1 2024, 7:19 PM
Unknown Object (File)
Sep 1 2024, 7:18 PM
Unknown Object (File)
Sep 1 2024, 7:09 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 Not Applicable
Unit
Tests Not Applicable