Skip to content

Commit

Permalink
drm/radeon: reset BOs address after clearing it.
Browse files Browse the repository at this point in the history
Otherwise it is possible that we will have page table corruption
if we change a BOs address multiple times.

Signed-off-by: Christian König <christian.koenig@amd.com>
CC: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
ChristianKoenigAMD authored and alexdeucher committed Apr 27, 2015
1 parent 26d4d12 commit 48afbd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/radeon/radeon_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 48afbd7

Please sign in to comment.