drm/amdgpu: fix error handling in ib_schedule()

If fence emit fails, free the fence if necessary.

Fixes: db36632ea5 ("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 5eb680a060)
This commit is contained in:
Alex Deucher 2025-12-29 15:24:10 -05:00
commit 82a401ceff