Re: [PATCH 1/1] drm/amdgpu: Improve error handling for HMM

2019-05-09 Thread Yang, Philip
On 2019-05-07 5:52 p.m., Kuehling, Felix wrote: > 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 Reviewed-by: Philip Yang

[PATCH 1/1] drm/amdgpu: Improve error handling for HMM

2019-05-07 Thread Kuehling, Felix
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 --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 22 ++ 1 file changed