summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLama Kayal <lkayal@nvidia.com>2025-08-25 17:34:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-09-04 16:55:40 +0200
commitca20c7a9ac945a0adeb0e6f1804eef55fddafe2e (patch)
tree7aa2a3a998f3792570b9a2be5de3e7aa8c3d055b /tools/perf/scripts/python/stackcollapse.py
parent3668ba8832f1fc4de78e6624d7a5e47a0f88dd6d (diff)
downloadkernel-ca20c7a9ac945a0adeb0e6f1804eef55fddafe2e.tar.gz
net/mlx5: HWS, Fix pattern destruction in mlx5hws_pat_get_pattern error path
[ Upstream commit 00a50e4e8974cbf5d6a1dc91cfa5cce4aa7af05a ] In mlx5hws_pat_get_pattern(), when mlx5hws_pat_add_pattern_to_cache() fails, the function attempts to clean up the pattern created by mlx5hws_cmd_header_modify_pattern_create(). However, it incorrectly uses *pattern_id which hasn't been set yet, instead of the local ptrn_id variable that contains the actual pattern ID. This results in attempting to destroy a pattern using uninitialized data from the output parameter, rather than the valid pattern ID returned by the firmware. Use ptrn_id instead of *pattern_id in the cleanup path to properly destroy the created pattern. Fixes: aefc15a0fa1c ("net/mlx5: HWS, added modify header pattern and args handling") Signed-off-by: Lama Kayal <lkayal@nvidia.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Mark Bloch <mbloch@nvidia.com> Link: https://patch.msgid.link/20250825143435.598584-5-mbloch@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions