mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
drm/amdgpu: Fix use of interruptible waiting
If amdgpu_bo_reserve function is interrupted by signal, amdgpu_bo_kunmap function is not called. Signed-off-by: Alex Xie <AlexBin.Xie@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
e6b9a6c84b
commit
8ab25b4f51
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ static void amdgpu_vram_scratch_fini(struct amdgpu_device *adev)
|
|||
if (adev->vram_scratch.robj == NULL) {
|
||||
return;
|
||||
}
|
||||
r = amdgpu_bo_reserve(adev->vram_scratch.robj, false);
|
||||
r = amdgpu_bo_reserve(adev->vram_scratch.robj, true);
|
||||
if (likely(r == 0)) {
|
||||
amdgpu_bo_kunmap(adev->vram_scratch.robj);
|
||||
amdgpu_bo_unpin(adev->vram_scratch.robj);
|
||||
|
|
|
|||
Loading…
Reference in a new issue