Files
linux/drivers/mfd
Kangjie Lu 4a1293bcce 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>
2023-05-15 11:44:15 +09:00
..
2016-04-19 07:58:06 +01:00
2016-08-31 13:48:25 +01:00
2015-10-30 17:19:51 +00:00
2015-10-30 17:19:51 +00:00
2016-08-10 09:25:18 +01:00
2016-08-10 09:25:18 +01:00
2015-08-11 15:09:01 +01:00
2017-12-29 17:42:58 +01:00
2013-07-31 13:01:29 +01:00
2015-08-11 15:09:01 +01:00
2015-08-11 15:09:01 +01:00