commit | 7ae32f3d56ead82d6cfb8db29dab344dc97b46fd | [log] [tgz] |
---|---|---|
author | Jenny Ho <[email protected]> | Tue Apr 12 10:10:10 2022 +0800 |
committer | Jenny Ho <[email protected]> | Tue Apr 12 12:41:47 2022 +0000 |
tree | 0eb16800e1f0a6a26240c4a82276f1bcb659d025 | |
parent | 19d3ca45d2b8f7dcb62cf795a605e88329e2290d [diff] |
google_battery: fix invalid-access in GBMS_CCCM_LIMITS temp_idx and vbatt_idx are -1 when battery is disconnected. And this situation results in invalid access to the CCCM table. Move to a reasonable position to check cc_max Bug: 228802503 Signed-off-by: Jenny Ho <[email protected]> Change-Id: I9d41714d91e5ccb25abe66c4fc1920be0d2851d4