drm/amdgpu: Fix two bugs in amdgpu_vm_bo_split_mapping
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 4 Mar 2016 00:13:20 +0000 (19:13 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Mar 2016 18:04:00 +0000 (13:04 -0500)
commitfb29b57c34488b343db2e3f00e713901385f8c0d
tree9e8455dc87efe285546f84a1ed8371cf084490fa
parent459ee1c3fd097ab56ababd8ff4bb7ef6a792de33
drm/amdgpu: Fix two bugs in amdgpu_vm_bo_split_mapping

Off-by-one: last is inclusive, so the maximum is start + max_size - 1
Wrong unit: addr is in bytes, max_size is in pages

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c