Files
linux/drivers/mfd
Kangjie Lu 1f1408d908 mfd: mc13xxx: Fix a missing check of a register-read failure
[ Upstream commit 9e28989d41 ]

When mc13xxx_reg_read() fails, "old_adc0" is uninitialized and will
contain random value. Further execution uses "old_adc0" even when
mc13xxx_reg_read() fails.
The fix checks the return value of mc13xxx_reg_read(), and exits
the execution when it fails.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-27 10:08:03 +01:00
..
2016-11-29 08:21:33 +00:00
2017-07-18 08:27:18 +01:00
2015-10-30 17:19:51 +00:00
2015-10-30 17:19:51 +00:00
2017-09-04 14:49:04 +01:00
2016-08-10 09:25:18 +01:00
2016-08-10 09:25:18 +01:00
2017-04-27 09:25:04 +01:00
2017-12-29 17:53:46 +01:00
2015-08-11 15:09:01 +01:00