summaryrefslogtreecommitdiff
path: root/drivers/hwmon/via686a.c
diff options
context:
space:
mode:
authorKangjie Lu <kjlu@umn.edu>2018-12-21 13:01:33 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-12 19:46:07 +0100
commit58ddc0c67d113a1081e3c017682b475b75a6bf2c (patch)
treeb8e1a9b28ce132391e8c84cda53edf8763db0f20 /drivers/hwmon/via686a.c
parentd9783bcebb990207bc510c55664118a524218de4 (diff)
hwmon: (lm80) fix a missing check of the status of SMBus read
[ Upstream commit c9c63915519b1def7043b184680f33c24cd49d7b ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwmon/via686a.c')
0 files changed, 0 insertions, 0 deletions