diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index be80a4a68d7b..6a609a25b3fa 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |||
@@ -411,11 +411,8 @@ int amdgpu_bo_create_restricted(struct amdgpu_device *adev, | |||
411 | amdgpu_cs_report_moved_bytes(adev, | 411 | amdgpu_cs_report_moved_bytes(adev, |
412 | atomic64_read(&adev->num_bytes_moved) - initial_bytes_moved); | 412 | atomic64_read(&adev->num_bytes_moved) - initial_bytes_moved); |
413 | 413 | ||
414 | if (unlikely(r != 0)) { | 414 | if (unlikely(r != 0)) |
415 | if (!resv) | ||
416 | ww_mutex_unlock(&bo->tbo.resv->lock); | ||
417 | return r; | 415 | return r; |
418 | } | ||
419 | 416 | ||
420 | bo->tbo.priority = ilog2(bo->tbo.num_pages); | 417 | bo->tbo.priority = ilog2(bo->tbo.num_pages); |
421 | if (kernel) | 418 | if (kernel) |