diff options
| author | Kangjie Lu <[email protected]> | 2018-12-25 21:09:11 -0600 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2019-01-22 19:03:43 +0100 |
| commit | 9a20b5e35a536d6bb4b2d4a3b14a0457e205356c (patch) | |
| tree | 2e9c4093c1e645bb9784df16383f292cac1ab43b /tools/perf/scripts/python | |
| parent | 5910fa0d0d9809c4d8fbf1fb905a8c86fbf2eccb (diff) | |
rtc: hym8563: fix a missing check of block data read
When i2c_smbus_read_i2c_block_data() fails, the read data in "buf" could
be incorrect and should not be used. The fix checks if
i2c_smbus_read_i2c_block_data fails, and if so, return its error code
upstream.
Signed-off-by: Kangjie Lu <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions