Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753866Ab0HWKBy (ORCPT ); Mon, 23 Aug 2010 06:01:54 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:34731 "EHLO opensource2.wolfsonmicro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752141Ab0HWKBw (ORCPT ); Mon, 23 Aug 2010 06:01:52 -0400 Date: Mon, 23 Aug 2010 11:01:50 +0100 From: Mark Brown To: Axel Lin Cc: linux-kernel , Liam Girdwood , Mike Rapoport Subject: Re: [PATCH 1/2] regulator: tps6586x-regulator - fix value range checking for val Message-ID: <20100823100150.GF6061@rakim.wolfsonmicro.main> References: <1282487895.23014.19.camel@phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1282487895.23014.19.camel@phoenix> X-Cookie: Advancement in position. 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: 528 Lines: 12 On Sun, Aug 22, 2010 at 10:38:15PM +0800, Axel Lin wrote: > val is used as array index of ri->voltages. > Thus the valid value range should be 0 .. ri->desc.n_voltages - 1. > > Signed-off-by: Axel Lin 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/