drm/radeon: fix VA range check
The end offset is exclusive not inclusive. Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Jerome Glisse <jglisse@redhat.com>
This commit is contained in:
parent
1678dbc22e
commit
a36e70b2e5
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue