Re: [PATCH] regulator: ab8500 - fix off-by-one value rangechecking for selector
From: Mark Brown
Date: Sun Sep 05 2010 - 04:48:40 EST
On Sat, Sep 04, 2010 at 11:06:41PM +0800, Axel Lin wrote:
> selector is used as array index of info->supported_voltages
> Thus the valid value range should be 0 .. info->voltages_len -1
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
Acked-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/