mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
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 commit5eb680a060)
This commit is contained in:
parent
b6aff8bb0c
commit
82a401ceff
|
|
@ -302,7 +302,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned int num_ibs,
|
|||
if (job && job->vmid)
|
||||
amdgpu_vmid_reset(adev, ring->vm_hub, job->vmid);
|
||||
amdgpu_ring_undo(ring);
|
||||
return r;
|
||||
goto free_fence;
|
||||
}
|
||||
*f = &af->base;
|
||||
/* get a ref for the job */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user