diff options
author | Kangjie Lu <[email protected]> | 2018-12-20 15:12:11 -0600 |
---|---|---|
committer | Lee Jones <[email protected]> | 2019-01-03 08:32:42 +0000 |
commit | 9e28989d41c0eab57ec0bb156617a8757406ff8a (patch) | |
tree | ab5f7df3b3e29b46f3ae67093d1047a60122972b /net/lapb/lapb_timer.c | |
parent | c1f3375be60c562e24460d41b75e564c0a429835 (diff) |
mfd: mc13xxx: Fix a missing check of a register-read failure
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 <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions