diff options
author | Christian König <christian.koenig@amd.com> | 2020-11-02 19:22:35 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-11-05 01:08:55 +0300 |
commit | 19201c075d2ca6a58421aa1f22281977e84ae17f (patch) | |
tree | 16f806d4693bcaa86145a528cfb4db34ceaacfcb /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | 413949ee1cdb9128b542a3c501686a883aec940f (diff) | |
download | linux-19201c075d2ca6a58421aa1f22281977e84ae17f.tar.xz |
drm/amdgpu: fix off by one in amdgpu_vm_handle_fault
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index dc0bc550e42b..fdbe7d4e8b8b 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; |