]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/userq: Fix reference leak in amdgpu_userq_wait_ioctl
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Mon, 23 Feb 2026 12:41:30 +0000 (12:41 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 25 Feb 2026 22:49:02 +0000 (17:49 -0500)
commit49abfa812617a7f2d0132c70d23ac98b389c6ec1
tree16b4c3993f28c7edda01cfe9b9ccaab7639b7b83
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
drm/amdgpu/userq: Fix reference leak in amdgpu_userq_wait_ioctl

Drop reference to syncobj and timeline fence when aborting the ioctl due
output array being too small.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
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>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 68951e9c3e6bb22396bc42ef2359751c8315dd27)
Cc: <stable@vger.kernel.org> # v6.16+
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c