summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLama Kayal <lkayal@nvidia.com>2025-08-25 17:34:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-09-04 16:55:40 +0200
commit051fd8576a2e4e95d5870c5c9f8679c5b16882e4 (patch)
tree31b4545ec2832feeff667673ee386d7c53dd7d1c /tools/perf/scripts/python/stackcollapse.py
parent86d13a6f49cb68aa91bd718b1b627e72e77285c1 (diff)
downloadkernel-051fd8576a2e4e95d5870c5c9f8679c5b16882e4.tar.gz
net/mlx5: HWS, Fix memory leak in hws_action_get_shared_stc_nic error flow
[ Upstream commit a630f83592cdad1253523a1b760cfe78fef6cd9c ] When an invalid stc_type is provided, the function allocates memory for shared_stc but jumps to unlock_and_out without freeing it, causing a memory leak. Fix by jumping to free_shared_stc label instead to ensure proper cleanup. Fixes: 504e536d9010 ("net/mlx5: HWS, added actions 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-3-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