summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorKangjie Lu <kjlu@umn.edu>2018-12-20 15:12:11 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-23 08:44:16 +0100
commitd8189ee86c3a63ba73eecab676f7a10b13d8ff65 (patch)
tree19ab4fdf603d3d042db5fef11838dc84116ec946 /tools/perf/scripts/python/netdev-times.py
parent81456de2d4b3a48d91845c0a8cbfccfc6cb4f5cd (diff)
mfd: mc13xxx: Fix a missing check of a register-read failure
[ Upstream commit 9e28989d41c0eab57ec0bb156617a8757406ff8a ] 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 <kjlu@umn.edu> Signed-off-by: Lee Jones <lee.jones@linaro.org> 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