Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753807Ab0GZJCK (ORCPT ); Mon, 26 Jul 2010 05:02:10 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:44880 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752127Ab0GZJCI (ORCPT ); Mon, 26 Jul 2010 05:02:08 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=sdF45t/05XP3UyWmakoBJApC/pKYKlxQgY6v9q9iNZwMHwjKNL6NTo1RcvZ05HjWQa 2ukdAk55+JmFFfVQKcZDjmx1X/hXSciLU/2Frfe8bZZWbicCAsIXRGam303lhqw4YrN5 VaL+cq0oWK8IcWEkWMOMriumaL+UePu01oxCE= MIME-Version: 1.0 In-Reply-To: <1280129654.26844.3.camel@mola> References: <1280129654.26844.3.camel@mola> Date: Mon, 26 Jul 2010 11:02:05 +0200 X-Google-Sender-Auth: kgrqBRvzB-uhatGK98D7xudxFUE Message-ID: Subject: Re: [PATCH resend] ab3100: fix off-by-one value range checking for voltage selector From: Linus Walleij To: Axel Lin Cc: linux-kernel , Liam Girdwood , Mark Brown , Mattias Wallin Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 610 Lines: 17 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 Yours, Linus Walleij -- 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/