git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00edfc6
)
da9052-battery: Avoid out-of-range array access
author
Nickolai Zeldovich
<nickolai@csail.mit.edu>
Sat, 5 Jan 2013 19:14:51 +0000
(14:14 -0500)
committer
Anton Vorontsov
<anton@enomsg.org>
Sun, 6 Jan 2013 22:34:26 +0000
(14:34 -0800)
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>
No differences found