summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorMaher Sanalla <msanalla@nvidia.com>2026-01-04 15:51:35 +0200
committerLeon Romanovsky <leon@kernel.org>2026-01-05 04:02:40 -0500
commit6dc78c53de99e4ed9868d4f0fc6da6e46f52fe4d (patch)
tree06e41d0fc537b2b991d278bca43e3933bcc8398e /tools/perf/scripts/python/bin/stackcollapse-record
parent8d466b155f83890f2f2d4cf6d0f623ac2d455b12 (diff)
downloadlinux-6dc78c53de99e4ed9868d4f0fc6da6e46f52fe4d.tar.gz
linux-6dc78c53de99e4ed9868d4f0fc6da6e46f52fe4d.zip
RDMA/mlx5: Fix ucaps init error flow
In mlx5_ib_stage_caps_init(), if mlx5_ib_init_ucaps() fails after mlx5_ib_init_var_table() succeeds, the VAR bitmap is leaked since the function returns without cleanup. Thus, cleanup the var table bitmap in case of error of initializing ucaps before exiting, preventing the leak above. Fixes: cf7174e8982f ("RDMA/mlx5: Create UCAP char devices for supported device capabilities") Signed-off-by: Maher Sanalla <msanalla@nvidia.com> Reviewed-by: Yishai Hadas <yishaih@nvidia.com> Link: https://patch.msgid.link/20260104-ib-core-misc-v1-3-00367f77f3a8@nvidia.com Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions