aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorRichard Weinberger <[email protected]>2014-06-02 20:38:34 +0000
committerIngo Molnar <[email protected]>2014-06-05 09:07:43 +0000
commitb14ed2c273f8ab872ae4e6735fe5ab09cb14b8c3 (patch)
treef7575256a33d949f4ce3919fcd9e8b1f471133b9 /tools/perf/scripts/python/check-perf-trace.py
parentsched/numa: Fix use of spin_{un}lock_irq() when interrupts are disabled (diff)
downloadkernel-b14ed2c273f8ab872ae4e6735fe5ab09cb14b8c3.tar.gz
kernel-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 <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: Michael Kerrisk <[email protected]> Cc: Linus Torvalds <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions