[lkml]   [2016]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch] x86/ldt: make a size variable unsigned
On Thu, Dec 8, 2016 at 2:56 AM, Dan Carpenter <> wrote:
> My static checker complains that we put an upper bound on the "size"
> variable but not a lower bound. The checker is not smart enough to know
> the possible ranges of "old_mm->context.ldt->size" from
> init_new_context_ldt() so it thinks maybe it could be negative.
> Let's make it unsigned to silence the warning and future proof the code
> a bit.

Acked-by: Andy Lutomirski <>

 \ /
  Last update: 2016-12-08 23:31    [W:0.041 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site