diff options
author | 2014-06-02 22:38:34 +0200 | |
---|---|---|
committer | 2014-06-05 11:07:43 +0200 | |
commit | b14ed2c273f8ab872ae4e6735fe5ab09cb14b8c3 (patch) | |
tree | f7575256a33d949f4ce3919fcd9e8b1f471133b9 /tools/perf/scripts/python/syscall-counts.py | |
parent | sched/numa: Fix use of spin_{un}lock_irq() when interrupts are disabled (diff) | |
download | wireguard-linux-b14ed2c273f8ab872ae4e6735fe5ab09cb14b8c3.tar.xz wireguard-linux-b14ed2c273f8ab872ae4e6735fe5ab09cb14b8c3.zip |
sched: Fix sched_policy < 0 comparison
attr.sched_policy is u32, therefore a comparison against < 0 is never true.
Fix this by casting sched_policy to int.
This issue was reported by coverity CID 1219934.
Fixes: dbdb22754fde ("sched: Disallow sched_attr::sched_policy < 0")
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1401741514-7045-1-git-send-email-richard@nod.at
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions