summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/occ/Makefile
diff options
context:
space:
mode:
authorKangjie Lu2018-12-21 20:10:39 +0100
committerGuenter Roeck2018-12-22 00:37:59 +0100
commit9aa3aa15f4c2f74f47afd6c5db4b420fadf3f315 (patch)
treec2c28bd0c63dfda8b188d00492d1fe6d2375f0a5 /drivers/hwmon/occ/Makefile
parenthwmon: (lm80) fix a missing check of the status of SMBus read (diff)
downloadkernel-qcow2-linux-9aa3aa15f4c2f74f47afd6c5db4b420fadf3f315.tar.gz
kernel-qcow2-linux-9aa3aa15f4c2f74f47afd6c5db4b420fadf3f315.tar.xz
kernel-qcow2-linux-9aa3aa15f4c2f74f47afd6c5db4b420fadf3f315.zip
hwmon: (lm80) fix a missing check of bus read in lm80 probe
In lm80_probe(), if lm80_read_value() fails, it returns a negative error number which is stored to data->fan[f_min] and will be further used. We should avoid using the data if the read 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> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/occ/Makefile')
0 files changed, 0 insertions, 0 deletions