From: Richard Weinberger Date: Mon, 2 Jun 2014 20:38:34 +0000 (+0200) Subject: sched: Fix sched_policy < 0 comparison X-Git-Tag: omap-for-v3.16/fixes-against-rc1~98^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b14ed2c273f8ab872ae4e6735fe5ab09cb14b8c3;p=pandora-kernel.git 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 Signed-off-by: Peter Zijlstra Cc: Michael Kerrisk Cc: Linus Torvalds Link: http://lkml.kernel.org/r/1401741514-7045-1-git-send-email-richard@nod.at Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed