diff options
author | Kangjie Lu <kjlu@umn.edu> | 2018-12-25 22:18:23 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-27 10:08:05 +0100 |
commit | caa27a81df46e5a697ca6731677deeb45100883b (patch) | |
tree | d3d2393d8cbdba20f3ff2ebc7c1076aeb5392e83 /Kconfig | |
parent | 733d1915bf571616746f563632015d3bf568bc87 (diff) | |
download | linux-stable-caa27a81df46e5a697ca6731677deeb45100883b.tar.gz linux-stable-caa27a81df46e5a697ca6731677deeb45100883b.tar.bz2 linux-stable-caa27a81df46e5a697ca6731677deeb45100883b.zip |
leds: lp5523: fix a missing check of return value of lp55xx_read
[ Upstream commit 248b57015f35c94d4eae2fdd8c6febf5cd703900 ]
When lp55xx_read() fails, "status" is an uninitialized variable and thus
may contain random value; using it leads to undefined behaviors.
The fix inserts a check for the return value of lp55xx_read: if it
fails, returns with its error code.
Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions