commit | c4f3422630464d231c14c8b9e585c23fcfe3436c | [log] [tgz] |
---|---|---|
author | Nickolai Zeldovich <nickolai@csail.mit.edu> | Sat Jan 05 14:14:51 2013 -0500 |
committer | Anton Vorontsov <anton@enomsg.org> | Sun Jan 06 14:34:26 2013 -0800 |
tree | 4aef38e6b144526729768b416ee496bb0699afff | |
parent | 00edfc65c2ce7d039ea45f1b3cc120db01ddcce9 [diff] |
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 <nickolai@csail.mit.edu> Signed-off-by: Anton Vorontsov <anton@enomsg.org>