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:
40b1936
)
regulator: ti-abb: Fix off-by-one valid range checking for abb->current_info_idx
author
Axel Lin
<axel.lin@ingics.com>
Sat, 4 May 2013 14:02:27 +0000
(22:02 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Sun, 12 May 2013 14:31:36 +0000
(18:31 +0400)
abb->current_info_idx is used as array subscript to access volt_table,
thus the valid value range should be 0 ... desc->n_voltages - 1.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
No differences found