Re: [PATCH] regulator MAX8998/LP3974 Bufgix: accessing array outof bound.

From: Mark Brown
Date: Thu Dec 23 2010 - 06:57:19 EST


On Thu, Dec 23, 2010 at 05:44:28PM +0900, MyungJoo Ham wrote:
> The previous driver may access ldo_voltage_map[] out of its bound at
> probe function at line 790 (drivers/regulator/max8998.c). This patch
> allocates an entry for every regulator in order to avoid accessing
> out-of-bounds.
>
> Signed-off-by: MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>
> Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>

Acked-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

If reposting a previously acked patch then please add the ack to the
patch - makes life easier when reviewing. If you change the patch then
it needs rechecking but otherwise just keep the acks.
--
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/