regulator: add check index of wm8350->pmic.pdev[]
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 15 Jun 2009 20:30:39 +0000 (22:30 +0200)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 22 Sep 2009 12:32:35 +0000 (13:32 +0100)
commit4dee4d441d3f90cd8cec10a9eb222d8a4f2fa2a3
treeb246cd1f654cee874a055031d84f53bd4c5150bd
parent43c1266ce4dc06bfd236cec31e11e9ecd69c0bef
regulator: add check index of wm8350->pmic.pdev[]

Ensure that reg is within the bounds of array wm8350->pmic.pdev[].

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/wm8350-regulator.c