diff options
author | Kangjie Lu <[email protected]> | 2018-12-18 23:04:13 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2018-12-19 12:37:52 +0000 |
commit | 966e927bf8cc6a44f8b72582a1d6d3ffc73b12ad (patch) | |
tree | ca43c6c5bf5f25abc61cbd98f59ce734a3401ad2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 22a5a4a44c43e2993e96183039aef71566e1a514 (diff) |
drivers/regulator: fix a missing check of return value
If palmas_smps_read() fails, we should not use the read data in "reg"
which may contain random value. The fix inserts a check for the return
value of palmas_smps_read(): If it fails, we return the error code
upstream and stop using "reg".
Signed-off-by: Kangjie Lu <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions