Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48afbd70 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/radeon: reset BOs address after clearing it.



Otherwise it is possible that we will have page table corruption
if we change a BOs address multiple times.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
CC: stable@vger.kernel.org
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 26d4d129
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -490,6 +490,8 @@ int radeon_vm_bo_set_addr(struct radeon_device *rdev,
			spin_lock(&vm->status_lock);
			list_add(&tmp->vm_status, &vm->freed);
			spin_unlock(&vm->status_lock);

			bo_va->addr = 0;
		}

		interval_tree_remove(&bo_va->it, &vm->va);