mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
drm/amdgpu: unreserve the gem BO before returning from attach error
It requires unlocking the reserved gem BO before returning from attaching the eviction fence error. Signed-off-by: Prike Liang <Prike.Liang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
926c79ad6e
commit
def41146b9
|
|
@ -298,6 +298,7 @@ static int amdgpu_gem_object_open(struct drm_gem_object *obj,
|
|||
r = amdgpu_eviction_fence_attach(&fpriv->evf_mgr, abo);
|
||||
if (r) {
|
||||
DRM_DEBUG_DRIVER("Failed to attach eviction fence to BO\n");
|
||||
amdgpu_bo_unreserve(abo);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user