diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2016-06-04 01:42:12 +0300 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-07-21 01:22:09 +0300 |
commit | b624714bc90064eeefd9ba7564e90865eef00421 (patch) | |
tree | 3cb5a3c9a916c1e2d31fd3df993399d7471e9810 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 1b00c6c064302354fce71d7c363945fe9e967f7c (diff) | |
download | linux-b624714bc90064eeefd9ba7564e90865eef00421.tar.xz |
fm10k: avoid possible null pointer dereference in fm10k_update_stats
It's currently possible for fm10k_update_stats to be called during the
window when we go down and the rings are removed. This can result in
a null pointer dereference. In fm10k_get_stats64 we work around this by
using ACCESS_ONCE and a null pointer check inside the loop. Use this
same flow in the fm10k_update_stats to avoid the potential null pointer.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions