summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorKangjie Lu <kjlu@umn.edu>2018-12-18 23:04:13 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-05 15:34:40 +0100
commit608024a3a186c9bf958fe01dac244e187b1b04af (patch)
treea28a838a383e9e6d240e12d4bf46f2698b11999d /drivers/tty
parent52d915c2d4ff011ed376596ad74a15071ddb633d (diff)
drivers/regulator: fix a missing check of return value
[ Upstream commit 966e927bf8cc6a44f8b72582a1d6d3ffc73b12ad ] If palmas_smps_read() fails, we should not use the read data in "reg" which may contain random value. The fix inserts a check for the return value of palmas_smps_read(): If it fails, we return the error code upstream and stop using "reg". Signed-off-by: Kangjie Lu <kjlu@umn.edu> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/tty')
0 files changed, 0 insertions, 0 deletions