aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/radeon/radeon_gart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c
index d7bd46bd9067..614e31a6f832 100644
--- a/drivers/gpu/drm/radeon/radeon_gart.c
+++ b/drivers/gpu/drm/radeon/radeon_gart.c
@@ -732,7 +732,7 @@ int radeon_vm_bo_add(struct radeon_device *rdev,
732 head = &vm->va; 732 head = &vm->va;
733 last_offset = 0; 733 last_offset = 0;
734 list_for_each_entry(tmp, &vm->va, vm_list) { 734 list_for_each_entry(tmp, &vm->va, vm_list) {
735 if (bo_va->soffset >= last_offset && bo_va->eoffset < tmp->soffset) { 735 if (bo_va->soffset >= last_offset && bo_va->eoffset <= tmp->soffset) {
736 /* bo can be added before this one */ 736 /* bo can be added before this one */
737 break; 737 break;
738 } 738 }