Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f5cd8de2 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: ti-abb: Fix off-by-one valid range checking for abb->current_info_idx



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: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 40b1936e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment