summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMoshe Shemesh <moshe@nvidia.com>2022-04-11 20:38:44 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2022-05-04 10:00:06 +0300
commitfc3d3db07b35885f238e1fa06b9f04a8fa7a62d0 (patch)
treef4b010a2a66f50a7656d2ceb73ae7a14622447fc /tools/perf/scripts/python/stackcollapse.py
parentcb7786a76ea39f394f0a059787fe24fa8e340fb6 (diff)
downloadlinux-fc3d3db07b35885f238e1fa06b9f04a8fa7a62d0.tar.xz
net/mlx5: Avoid double clear or set of sync reset requested
Double clear of reset requested state can lead to NULL pointer as it will try to delete the timer twice. This can happen for example on a race between abort from FW and pci error or reset. Avoid such case using test_and_clear_bit() to verify only one time reset requested state clear flow. Similarly use test_and_set_bit() to verify only one time reset requested state set flow. Fixes: 7dd6df329d4c ("net/mlx5: Handle sync reset abort event") Signed-off-by: Moshe Shemesh <moshe@nvidia.com> Reviewed-by: Maher Sanalla <msanalla@nvidia.com> Reviewed-by: Shay Drory <shayd@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions