diff options
author | Christian König <deathsimple@vodafone.de> | 2012-09-11 16:09:57 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2012-09-20 13:10:41 -0400 |
commit | a36e70b2e55539aba0ba8a934c46b71c235488ac (patch) | |
tree | 6b00fcf7f754eee6067bf1a55d1d713a3e77b5d9 /drivers/gpu/drm/radeon/radeon_gart.c | |
parent | 1678dbc22e4b2cfe24a7e042d822ddb837e378c0 (diff) | |
download | linux-a36e70b2e55539aba0ba8a934c46b71c235488ac.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_gart.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_gart.c | 2 |
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, head = &vm->va; last_offset = 0; 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 */ break; } |