summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorKangjie Lu <kjlu@umn.edu>2018-12-21 22:01:33 +0300
committerGuenter Roeck <linux@roeck-us.net>2018-12-22 02:37:56 +0300
commitc9c63915519b1def7043b184680f33c24cd49d7b (patch)
tree893bd90f11a1ca968c1b73e86e410fbb1e2237b5 /tools/perf/scripts/python/stackcollapse.py
parentf9facc24a6441d6a82d6cca942b162a394ecba66 (diff)
downloadlinux-c9c63915519b1def7043b184680f33c24cd49d7b.tar.xz
hwmon: (lm80) fix a missing check of the status of SMBus read
If lm80_read_value() fails, it returns a negative number instead of the correct read data. Therefore, we should avoid using the data if it fails. The fix checks if lm80_read_value() fails, and if so, returns with the error number. Signed-off-by: Kangjie Lu <kjlu@umn.edu> [groeck: One variable for return values is enough] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions