diff options
author | Dimitri Fedrau <dimitri.fedrau@liebherr.com> | 2024-12-09 11:46:15 +0100 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2024-12-10 02:51:24 +0100 |
commit | afc6e39e824ad0e44b2af50a97885caec8d213d1 (patch) | |
tree | c14e765a18753d6d53bdb5edc667a3b48b29e39e /include/linux/fpga/fpga-bridge.h | |
parent | 40384c840ea1944d7c5a392e8975ed088ecf0b37 (diff) |
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: stable@vger.kernel.org
Signed-off-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
Link: https://lore.kernel.org/r/20241209-fix-charge-current-limit-v1-1-760d9b8f2af3@liebherr.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions