From: Nickolai Zeldovich Date: Sat, 5 Jan 2013 19:14:51 +0000 (-0500) Subject: da9052-battery: Avoid out-of-range array access X-Git-Tag: v3.9-rc1~151^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4f3422630464d231c14c8b9e585c23fcfe3436c;p=pandora-kernel.git da9052-battery: Avoid out-of-range array access Avoid accessing vc_tbl_ref[3], which is one past the end of that array, in da9052_determine_vc_tbl_index(), by adjusting the loop bound. (Hint: there is 'i + 1' inside the loop.) Signed-off-by: Nickolai Zeldovich Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed