From: Christian König Date: Mon, 2 Nov 2020 16:22:35 +0000 (+0100) Subject: drm/amdgpu: fix off by one in amdgpu_vm_handle_fault X-Git-Tag: baikal/mips/sdk5.9~12066^2~12^2~12 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=0faf29e6b7a7783ff252e3577249043bf099aff3;p=kernel.git drm/amdgpu: fix off by one in amdgpu_vm_handle_fault The value is inclusive, not exclusive. Signed-off-by: Christian König Reviewed-by: Felix Kuehling Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index dc0bc550e42b1..fdbe7d4e8b8b1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -3351,7 +3351,7 @@ bool amdgpu_vm_handle_fault(struct amdgpu_device *adev, unsigned int pasid, } r = amdgpu_vm_bo_update_mapping(adev, adev, vm, true, false, NULL, addr, - addr + 1, flags, value, NULL, NULL, + addr, flags, value, NULL, NULL, NULL); if (r) goto error_unlock;