diff options
author | Richard Weinberger <[email protected]> | 2014-06-02 22:38:34 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-06-05 11:07:43 +0200 |
commit | b14ed2c273f8ab872ae4e6735fe5ab09cb14b8c3 (patch) | |
tree | f7575256a33d949f4ce3919fcd9e8b1f471133b9 /net/unix/af_unix.c | |
parent | e9dd685ce81815811fb4da72e6ab10a694ac8468 (diff) |
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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions