drm/amdgpu: Fix off-by-one errors in amdgpu_vm_bo_map

commit 005ae95e6e 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>
This commit is contained in:
Felix Kuehling 2015-11-23 17:43:48 -05:00 • committed by Greg Kroah-Hartman
commit 8397905d2d