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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:18 +0000 (15:07 -0800)
commit8397905d2d56af92f2ba7e250bec5b6b0fdb9e57
treefc3ff9c7f6a0731eec6abbccdc7597237e1d0cbf
parent02b0518c0e5a9ba18f71fcc336bc7333b7a8893a
drm/amdgpu: Fix off-by-one errors in amdgpu_vm_bo_map

commit 005ae95e6ec119c64e2d16eb65a94c49e1dcf9f0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c