aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorJeff Kirsher <[email protected]>2019-01-03 17:17:03 -0800
committerJeff Kirsher <[email protected]>2019-02-05 16:08:55 -0800
commit979eff22c9f49b1882e417bdb750488f80302611 (patch)
tree12b1f7a27c36672633d442895a6570d976e04b03 /tools/perf/scripts/python/futex-contention.py
parentea888b03e3d784fc6617e032a1c01a2d1a04d164 (diff)
e1000e: fix a missing check for return value
The change is based on the issue found by Kangjie Lu <[email protected]> where we not checking the return value of a register read/write which could result in a NULL pointer dereference if the read/write fails. Since we are only trying to disable the far-end loopback, if the read and write of register fails, we do not want to bail out of the function. We just want to log that it failed to disable and continue on. CC: Sasha Neftin <[email protected]> CC: Kangjie Lu <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions