drm/amdkfd: use vma_lookup() instead of find_vma()
authorDeming Wang <wangdeming@inspur.com>
Fri, 7 Oct 2022 02:26:51 +0000 (22:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Oct 2022 18:34:47 +0000 (14:34 -0400)
commit3a3e841d050d9d919317ad2b65d80fc9c8c799dc
treedb38261fde5930cc4b32d32b4aa39427f5685908
parent178919f8ff2d4cd1ad32680eb767e6761e9d00ea
drm/amdkfd: use vma_lookup() instead of find_vma()

Using vma_lookup() verifies the start address is contained in the found
vma.  This results in easier to read the code.

Signed-off-by: Deming Wang <wangdeming@inspur.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c