Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756080Ab0G0Kfb (ORCPT ); Tue, 27 Jul 2010 06:35:31 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:58096 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754927Ab0G0Kfa (ORCPT ); Tue, 27 Jul 2010 06:35:30 -0400 Subject: Re: [PATCH resend] ab3100: fix off-by-one value range checking for voltage selector From: Liam Girdwood To: Linus Walleij Cc: Axel Lin , linux-kernel , Mark Brown , Mattias Wallin In-Reply-To: References: <1280129654.26844.3.camel@mola> Content-Type: text/plain; charset="UTF-8" Date: Tue, 27 Jul 2010 11:35:20 +0100 Message-ID: <1280226920.3085.22.camel@odin> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 792 Lines: 26 On Mon, 2010-07-26 at 11:02 +0200, Linus Walleij wrote: > 2010/7/26 Axel Lin : > > > We use voltage selector as an array index for typ_voltages. > > Thus the valid range for voltage selector should be 0..voltages_len-1. > > > > Signed-off-by: Axel Lin > > Acked-by: Mark Brown > > Acked-by: Linus Walleij Applied. Thanks Liam -- Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk -- 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/