]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Improve error handling for HMM
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 7 May 2019 21:46:14 +0000 (17:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:21:02 +0000 (12:21 -0500)
commite55de9513e01f415ec9e8c474b6ed7a1134f2917
tree21a48329d9d9ace6691d8530d43e2fd1a1d83e38
parenta8b75e3ad51a6e335032ed38ab362ee38dd7dfb8
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c