From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <19158.17068.783793.356509@cargo.ozlabs.ibm.com> Date: Thu, 15 Oct 2009 08:29:16 +1100 From: Paul Mackerras To: Roel Kluin Subject: Re: [PATCH] powerpc: Prevent unsigned wrap in htab_dt_scan_page_sizes() In-Reply-To: <4AD5C01E.8000600@gmail.com> References: <4AD5C01E.8000600@gmail.com> Cc: Andrew Morton , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Roel Kluin writes: > Check to prevent unsigned wrap of size before subtraction. > > Signed-off-by: Roel Kluin > --- > Is this maybe better or are we certain that size can't wrap? Patch looks good, though while you're at it, you could add a space after the "while". Acked-by: Paul Mackerras