diff options
author | Kangjie Lu <kjlu@umn.edu> | 2018-12-20 13:51:24 -0600 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2019-01-20 22:38:35 +0100 |
commit | 6f12e46eebf1a7d4fdd66df5e815df96b8f8b1b5 (patch) | |
tree | 3ab79ed9bac528edf0c60f0f97fd6bf6d74e9611 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3dcdb68925b82a9fe89b28bd66a8c12d8c3804a0 (diff) |
power: twl4030: fix a missing check of return value
If twl4030_bci_read() fails, the read data in "s" is incorrect,
which is however used in the following execution. The fix checks
the return value of twl4030_bci_read() and returns an error code
upstream upon the failure of twl4030_bci_read().
Signed-off-by: Kangjie Lu <kjlu@umn.edu>
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