Messages in this thread | | | Date | Tue, 3 Jun 2014 10:26:38 +0200 | From | Peter Zijlstra <> | Subject | Re: [PATCH] sched: Fix sched_policy < 0 comparison |
| |
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 <mtk.manpages@gmail.com> > Cc: Peter Zijlstra <peterz@infradead.org> > Cc: Ingo Molnar <mingo@kernel.org> > Signed-off-by: Richard Weinberger <richard@nod.at>
Thanks! [unhandled content-type:application/pgp-signature] | |