drm/amdgpu: fix off by one in amdgpu_vm_handle_fault
authorChristian König <christian.koenig@amd.com>
Mon, 2 Nov 2020 16:22:35 +0000 (17:22 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Nov 2020 22:08:55 +0000 (17:08 -0500)
The value is inclusive, not exclusive.

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

index dc0bc55..fdbe7d4 100644 (file)
@@ -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;