From: Axel Lin Date: Thu, 4 Aug 2011 08:18:11 +0000 (+0800) Subject: regulator: 88pm8607: Fix off-by-one value range checking in the case of no id is... X-Git-Tag: v3.2-rc1~101^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99cd25ce10249c7f9d7172fe2ed266b023cd3323;p=pandora-kernel.git 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 Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed