]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regulator: 88pm8607: Fix off-by-one value range checking in the case of no id is...
authorAxel Lin <axel.lin@gmail.com>
Thu, 4 Aug 2011 08:18:11 +0000 (16:18 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Mon, 8 Aug 2011 16:15:08 +0000 (17:15 +0100)
commit99cd25ce10249c7f9d7172fe2ed266b023cd3323
treea3a966425ec2661cf94661f68691f6207c303c67
parent88585b83e011e661bcd2cf48d47f4634bdd92a14
regulator: 88pm8607: Fix off-by-one value range checking in the case of no id is matched

In the case of no id is matched, the variable i is equal to
ARRAY_SIZE(pm8607_regulator_info).

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/88pm8607.c