diff options
| author | Kangjie Lu <kjlu@umn.edu> | 2018-12-25 22:18:23 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-23 08:44:17 +0100 |
| commit | 65aac32fee8007170c5ce738837046bde5f2b12d (patch) | |
| tree | 25630257a571c085e041245d6ac3b58600c628e6 /tools/perf/scripts/python/netdev-times.py | |
| parent | 4949b728976c1142c8a6b484e789af5d554886b1 (diff) | |
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 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
