]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix off-by-one errors in amdgpu_vm_bo_map
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 23 Nov 2015 22:43:48 +0000 (17:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:39:14 +0000 (16:39 -0500)
commit8f48dd615fc38faa2c53f84ff32f407b7725fd12
tree8739151b1ce8a4d1645e980a9297abe9a4936bc8
parent7364dc3ad13e60cc1c084fe1791f6dccb48d714e
drm/amdgpu: Fix off-by-one errors in amdgpu_vm_bo_map

eaddr is sometimes treated as the last address inside the address
range, and sometimes as the first address outside the range. This
was resulting in errors when a test filled up the entire address
space. Make it consistent to always be the last address within the
range.

Signed-off-by: Felix.Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c