commit | b97a7071df44dc0840f7dc2ddedfd27cbbbbe725 | [log] [tgz] |
---|---|---|
author | Jenny Ho <[email protected]> | Sun May 01 21:05:24 2022 +0800 |
committer | Jenny Ho <[email protected]> | Tue May 03 01:08:40 2022 +0000 |
tree | 54aafe4849aa4f34abf945c84888261b6edf4abc | |
parent | 2c40722c400d94cc17b6b6e034f9250738ae0b57 [diff] |
google_bms: add GBMS_CCCM_LIMITS index check when temperature >= stop charge criteria (55 degC), we set both temp_idx and vbatt_idx to -1 in msc_logic_soft_jeita -> batt_reset_chg_drv_state That causes invalid access in batt_calc_charging_speed -> GBMS_CCCM_LIMITS Add index value check in GBMS_CCCM_LIMITS to prevent invalid access Bug: 230744011 Signed-off-by: Jenny Ho <[email protected]> Change-Id: I0eb4637a42c70bd61a65099eee583d4f335da1ac