* [PATCH v2 01/12] drm/amdgpu/userq: Fix reference leak in amdgpu_userq_wait_ioctl
[not found] <20260223124141.10641-1-tvrtko.ursulin@igalia.com>
@ 2026-02-23 12:41 ` Tvrtko Ursulin
0 siblings, 0 replies; only message in thread
From: Tvrtko Ursulin @ 2026-02-23 12:41 UTC (permalink / raw)
To: amd-gfx
Cc: Sunil Khatri, kernel-dev, Tvrtko Ursulin,
Arunpravin Paneer Selvam, Christian König, Alex Deucher,
stable
Drop reference to syncobj and timeline fence when aborting the ioctl due
output array being too small.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Fixes: a292fdecd728 ("drm/amdgpu: Implement userqueue signal/wait IOCTL")
Cc: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: <stable@vger.kernel.org> # v6.16+
---
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
index 8013260e29dc..9b9947b94b89 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
@@ -876,6 +876,7 @@ int amdgpu_userq_wait_ioctl(struct drm_device *dev, void *data,
dma_fence_unwrap_for_each(f, &iter, fence) {
if (WARN_ON_ONCE(num_fences >= wait_info->num_fences)) {
r = -EINVAL;
+ dma_fence_put(fence);
goto free_fences;
}
@@ -900,6 +901,7 @@ int amdgpu_userq_wait_ioctl(struct drm_device *dev, void *data,
if (WARN_ON_ONCE(num_fences >= wait_info->num_fences)) {
r = -EINVAL;
+ dma_fence_put(fence);
goto free_fences;
}
--
2.52.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-02-23 12:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260223124141.10641-1-tvrtko.ursulin@igalia.com>
2026-02-23 12:41 ` [PATCH v2 01/12] drm/amdgpu/userq: Fix reference leak in amdgpu_userq_wait_ioctl Tvrtko Ursulin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox