]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: fix error handling in ib_schedule()
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Dec 2025 20:24:10 +0000 (15:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Jan 2026 02:53:18 +0000 (21:53 -0500)
commit82a401ceffba9120fae937e0a504dbe7e5d63003
tree95bfa0d930c55b6480825a27ed34261124c0b6c7
parentb6aff8bb0c40dfcd42e82a8b030123cebd4df8f5
drm/amdgpu: fix error handling in ib_schedule()

If fence emit fails, free the fence if necessary.

Fixes: db36632ea51e ("drm/amdgpu: clean up and unify hw fence handling")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 5eb680a06007f2f6ea333d11a4e29039da90614b)
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c