Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758405Ab0DPSuB (ORCPT ); Fri, 16 Apr 2010 14:50:01 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:48410 "EHLO opensource2.wolfsonmicro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757722Ab0DPSt7 (ORCPT ); Fri, 16 Apr 2010 14:49:59 -0400 Date: Sat, 17 Apr 2010 03:50:04 +0900 From: Mark Brown To: Phil Carmody Cc: sameo@linux.intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: Fix fencepost error in reg cache access check Message-ID: <20100416185003.GB24707@opensource.wolfsonmicro.com> References: <1271419209-21634-1-git-send-email-ext-phil.2.carmody@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1271419209-21634-1-git-send-email-ext-phil.2.carmody@nokia.com> X-Cookie: You enjoy the company of other people. User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 653 Lines: 14 On Fri, Apr 16, 2010 at 03:00:09PM +0300, Phil Carmody wrote: > From: Phil Carmody > > Accessing num_reg elements in the interval [reg .. reg+num_regs) > is permitted if (reg+numregs <= array size), so barf when that > excluded upper bound is > array size. The prior -1 would give > access to one too many elements. Acked-by: Mark Brown -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/