Skip to content
Commit 541c3cb1 authored by Leandro Pereira's avatar Leandro Pereira Committed by Anas Nashif
Browse files

kernel: sched: Fix validation of priority levels



A priority value cannot be simultaneously higher than the maximum
possible value and smaller than the minimum value.  Rewrite the
_VALID_PRIO() macro as a function so that this if either of these
invariants are invalid, the priority is considered invalid.

Coverity-CID: 182584
Coverity-CID: 182585
Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent 8f7e5bd0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment