diff options
| author | Tingguo Cheng <tingguoc@qti.qualcomm.com> | 2026-08-12 00:44:47 -0700 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-08-12 23:17:30 +0200 |
| commit | 37689bcbc41b3850781b6c84f90cb4bd632bfbf0 (patch) | |
| tree | 9ef4c056de76caa1c02df974275a1a4375dce904 /scripts/Makefile.thinlto | |
| parent | 177299384a224377b4152242d875e752e5958c02 (diff) | |
| download | linux-stable-37689bcbc41b3850781b6c84f90cb4bd632bfbf0.tar.gz linux-stable-37689bcbc41b3850781b6c84f90cb4bd632bfbf0.zip | |
power: supply: qcom_battmgr: fix battery chemistry strncmp length
The battery_chemistry field is a 4-byte array without guaranteed null
termination. Using BATTMGR_CHEMISTRY_LEN (4) as the strncmp length for
3-character string literals implicitly requires chemistry[3] == '\0',
which may not hold. Use 3 instead to match only the significant bytes.
Signed-off-by: Tingguo Cheng <tingguo.cheng@oss.qualcomm.com>
Link: https://patch.msgid.link/20260812-fix-qcom-batt-chemistry-strn-v1-1-458545e02641@oss.qualcomm.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
