summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorKangjie Lu <kjlu@umn.edu>2018-12-25 22:18:23 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-23 08:44:17 +0100
commit65aac32fee8007170c5ce738837046bde5f2b12d (patch)
tree25630257a571c085e041245d6ac3b58600c628e6 /tools/perf/scripts/python/syscall-counts.py
parent4949b728976c1142c8a6b484e789af5d554886b1 (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/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions