On Mon, Jun 02, 2014 at 10:38:34PM +0200, Richard Weinberger wrote: > 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. > > Cc: Michael Kerrisk > Cc: Peter Zijlstra > Cc: Ingo Molnar > Signed-off-by: Richard Weinberger Thanks!