Files
Kangjie Lu 040f76976e hwmon: (lm80) fix a missing check of bus read in lm80 probe
[ Upstream commit 9aa3aa15f4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:47:16 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
2018-06-12 16:19:22 -07:00
…
2018-06-12 16:19:22 -07:00
…
2018-06-12 16:19:22 -07:00
…
2017-04-02 07:01:53 -07:00
…
2018-01-17 14:51:12 -08:00
…
…
2017-04-02 07:01:53 -07:00
2017-04-13 06:09:26 -07:00
2017-04-02 07:01:53 -07:00
2018-03-22 09:33:24 -07:00
…
…
…
…
…
…
2017-10-29 18:36:03 -07:00
…
…
…
2018-03-10 19:00:14 -08:00
…
…
…
…
…
…