From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423865AbcFMVPB (ORCPT ); Mon, 13 Jun 2016 17:15:01 -0400 Received: from mail-oi0-f54.google.com ([209.85.218.54]:33486 "EHLO mail-oi0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423253AbcFMVO7 (ORCPT ); Mon, 13 Jun 2016 17:14:59 -0400 MIME-Version: 1.0 In-Reply-To: <20160613065755.GC5993@mwanda> References: <20160613065755.GC5993@mwanda> From: Andy Lutomirski Date: Mon, 13 Jun 2016 14:14:39 -0700 Message-ID: Subject: Re: [patch] x86/ldt: silence a static checker warning To: Dan Carpenter Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , Andy Lutomirski , Dave Hansen , Jan Beulich , "linux-kernel@vger.kernel.org" , kernel-janitors@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 12, 2016 at 11:57 PM, Dan Carpenter wrote: > It likely doesn't make a difference but my static checker complains > that we put an upper bound on "size" but not a lower bound. Let's just > make it unsigned. Shouldn't oldsize and newsize in write_ldt as well as the "size" member in ldt_struct change, too? --Andy