]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/userq: Consolidate wait ioctl exit path
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Mon, 23 Feb 2026 12:41:32 +0000 (12:41 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 18:15:00 +0000 (13:15 -0500)
commit048c1c4e51715ffddd4189745c07f530f34fbe37
tree4d07a9d95a5dc1c2f69997e4fe900fb3264ae32e
parenta145bbff6f53ab80757a15eba5ad2ba8e3bdc9dc
drm/amdgpu/userq: Consolidate wait ioctl exit path

If we gate the fence destruction with a check telling us whether there are
valid pointers in there we can eliminate the need for dual, basically
identical, exit paths.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit bea29bb0dd29012949cd44fdb122465a9fd5cf91)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c