diff options
| author | Dimitri Fedrau <[email protected]> | 2024-12-09 10:46:15 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2024-12-10 01:51:24 +0000 |
| commit | afc6e39e824ad0e44b2af50a97885caec8d213d1 (patch) | |
| tree | c14e765a18753d6d53bdb5edc667a3b48b29e39e /drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c | |
| parent | Linux 6.13-rc1 (diff) | |
| download | kernel-afc6e39e824ad0e44b2af50a97885caec8d213d1.tar.gz kernel-afc6e39e824ad0e44b2af50a97885caec8d213d1.zip | |
power: supply: gpio-charger: Fix set charge current limits
Fix set charge current limits for devices which allow to set the lowest
charge current limit to be greater zero. If requested charge current limit
is below lowest limit, the index equals current_limit_map_size which leads
to accessing memory beyond allocated memory.
Fixes: be2919d8355e ("power: supply: gpio-charger: add charge-current-limit feature")
Cc: [email protected]
Signed-off-by: Dimitri Fedrau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c')
0 files changed, 0 insertions, 0 deletions
