Re: [PATCH resend] ab3100: fix off-by-one value range checking for voltage selector

From: Liam Girdwood
Date: Tue Jul 27 2010 - 06:35:35 EST

On Mon, 2010-07-26 at 11:02 +0200, Linus Walleij wrote:
> 2010/7/26 Axel Lin <axel.lin@xxxxxxxxx>:
> > 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 <axel.lin@xxxxxxxxx>
> > Acked-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxxxxxx>



Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at