summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
diff options
context:
space:
mode:
authorShuhao Fu <sfual@cse.ust.hk>2025-10-10 10:55:17 +0800
committerLeon Romanovsky <leon@kernel.org>2025-10-19 07:31:25 -0400
commitd8713158faad0fd4418cb2f4e432c3876ad53a1f (patch)
treea17a9c30d95e19215f5d0a0e58cb53aeb7a159f2 /drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
parent5575b7646b94c0afb0f4c0d86e00e13cf3397a62 (diff)
RDMA/uverbs: Fix umem release in UVERBS_METHOD_CQ_CREATE
In `UVERBS_METHOD_CQ_CREATE`, umem should be released if anything goes wrong. Currently, if `create_cq_umem` fails, umem would not be released or referenced, causing a possible leak. In this patch, we release umem at `UVERBS_METHOD_CQ_CREATE`, the driver should not release umem if it returns an error code. Fixes: 1a40c362ae26 ("RDMA/uverbs: Add a common way to create CQ with umem") Signed-off-by: Shuhao Fu <sfual@cse.ust.hk> Link: https://patch.msgid.link/aOh1le4YqtYwj-hH@osx.local Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c')
0 files changed, 0 insertions, 0 deletions