Files
twx-linux/drivers/mfd
Kangjie Lu 7fc59021c1 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:52 +01:00
..
2018-07-04 07:17:13 +01:00
2018-01-08 11:03:35 +00:00
2018-06-12 16:19:22 -07:00
2017-07-18 08:27:18 +01:00
2017-11-29 16:29:36 +00:00