summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
diff options
context:
space:
mode:
authorYanLong Dai <daiyanlong@kylinos.cn>2025-09-24 14:14:44 +0800
committerLeon Romanovsky <leon@kernel.org>2025-10-19 06:47:55 -0400
commit88de89f184661ebb946804a5abdf2bdec7f0a7ab (patch)
treeadd416a9ce95af11943d69285b07ad5a1e87c07f /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
parent3a8660878839faadb4f1a6dd72c3179c1df56787 (diff)
RDMA/bnxt_re: Fix a potential memory leak in destroy_gsi_sqp
The current error handling path in bnxt_re_destroy_gsi_sqp() could lead to a resource leak. When bnxt_qplib_destroy_qp() fails, the function jumps to the 'fail' label and returns immediately, skipping the call to bnxt_qplib_free_qp_res(). Continue the resource teardown even if bnxt_qplib_destroy_qp() fails, which aligns with the driver's general error handling strategy and prevents the potential leak. Fixes: 8dae419f9ec73 ("RDMA/bnxt_re: Refactor queue pair creation code") Signed-off-by: YanLong Dai <daiyanlong@kylinos.cn> Link: https://patch.msgid.link/20250924061444.11288-1-daiyanlong@kylinos.cn Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions