Commit a36e70b2 authored by Christian König's avatar Christian König Committed by Alex Deucher

drm/radeon: fix VA range check

The end offset is exclusive not inclusive.
Signed-off-by: default avatarChristian König <deathsimple@vodafone.de>
Reviewed-by: default avatarJerome Glisse <jglisse@redhat.com>
parent 1678dbc2
...@@ -732,7 +732,7 @@ int radeon_vm_bo_add(struct radeon_device *rdev, ...@@ -732,7 +732,7 @@ int radeon_vm_bo_add(struct radeon_device *rdev,
head = &vm->va; head = &vm->va;
last_offset = 0; last_offset = 0;
list_for_each_entry(tmp, &vm->va, vm_list) { list_for_each_entry(tmp, &vm->va, vm_list) {
if (bo_va->soffset >= last_offset && bo_va->eoffset < tmp->soffset) { if (bo_va->soffset >= last_offset && bo_va->eoffset <= tmp->soffset) {
/* bo can be added before this one */ /* bo can be added before this one */
break; break;
} }
......
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