lkml.org 
[lkml]   [2014]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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]
\
 
 \ /
  Last update: 2014-06-03 11:01    [W:0.062 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site