Skip to content

Commit def4114

Browse files
prliangpubalexdeucher
authored andcommitted
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>
1 parent 926c79a commit def4114

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ static int amdgpu_gem_object_open(struct drm_gem_object *obj,
298298
r = amdgpu_eviction_fence_attach(&fpriv->evf_mgr, abo);
299299
if (r) {
300300
DRM_DEBUG_DRIVER("Failed to attach eviction fence to BO\n");
301+
amdgpu_bo_unreserve(abo);
301302
return r;
302303
}
303304

0 commit comments

Comments
 (0)