aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNickolai Zeldovich <nickolai@csail.mit.edu>2013-01-05 14:14:51 -0500
committerAnton Vorontsov <anton@enomsg.org>2013-01-06 14:34:26 -0800
commitc4f3422630464d231c14c8b9e585c23fcfe3436c (patch)
tree4aef38e6b144526729768b416ee496bb0699afff /tools/perf/scripts/python
parentmax17040_battery: Use devm_kzalloc (diff)
downloadlinux-dev-c4f3422630464d231c14c8b9e585c23fcfe3436c.tar.xz
linux-dev-c4f3422630464d231c14c8b9e585c23fcfe3436c.zip
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions