diff options
| author | Andreas Kemnade <andreas@kemnade.info> | 2018-09-17 07:20:35 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-25 15:54:02 +0100 |
| commit | 4e42816ac16bb15b58e3304b4c5036141cc38ef5 (patch) | |
| tree | 2997fbe05770b3b4ccec6d019e8944e7f08a4e61 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 657f4204b23c061fdc572c5fd249ac4a51f0c062 (diff) | |
power: supply: twl4030_charger: fix charging current out-of-bounds
[ Upstream commit 8314c212f995bc0d06b54ad02ef0ab4089781540 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
