diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2019-05-08 00:46:14 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-05-24 20:21:02 +0300 |
commit | 1986a3b022bee7ad34d0c539b32a81575bf3c9a3 (patch) | |
tree | 21a48329d9d9ace6691d8530d43e2fd1a1d83e38 /drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c | |
parent | b9c5eb5b801a76df47e12a5754dcc1d3c4b34625 (diff) | |
download | linux-1986a3b022bee7ad34d0c539b32a81575bf3c9a3.tar.xz |
drm/amdgpu: Improve error handling for HMM
Use unsigned long for number of pages.
Check that pfns are valid after hmm_vma_fault. If they are not,
return an error instead of continuing with invalid page pointers and
PTEs.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c')
0 files changed, 0 insertions, 0 deletions