diff options
author | 2018-09-17 07:20:35 +0200 | |
---|---|---|
committer | 2018-09-20 02:15:41 +0200 | |
commit | 8314c212f995bc0d06b54ad02ef0ab4089781540 (patch) | |
tree | 5f3db3db4f652fd179cf26beeb86eb7ec68bff5c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | power: supply: bq25890_charger: fix semicolon.cocci warnings (diff) | |
download | wireguard-linux-8314c212f995bc0d06b54ad02ef0ab4089781540.tar.xz wireguard-linux-8314c212f995bc0d06b54ad02ef0ab4089781540.zip |
power: supply: twl4030_charger: fix charging current out-of-bounds
the charging current uses unsigned int variables, if we step back
if the current is still low, we would run into negative which
means setting the target to a huge value.
Better add checks here.
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions