Commit 268c4693 authored by Christian König's avatar Christian König Committed by Sasha Levin

drm/radeon: reset BOs address after clearing it.

[ Upstream commit 48afbd70 ]

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>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 92e022e6
......@@ -513,6 +513,8 @@ int radeon_vm_bo_set_addr(struct radeon_device *rdev,
tmp->addr = bo_va->addr;
tmp->bo = radeon_bo_ref(bo_va->bo);
list_add(&tmp->vm_status, &vm->freed);
bo_va->addr = 0;
}
interval_tree_remove(&bo_va->it, &vm->va);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment