]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Use vma_lookup() in amdgpu_ttm_tt_get_user_pages()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 8 Apr 2021 17:28:25 +0000 (13:28 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 10 May 2021 16:39:27 +0000 (12:39 -0400)
commit304e5593555dd3820ff37b7658a8798df2ea2150
tree55c71725edd958e542b9d9df258000107e28efb3
parent7101049c90a4235ce9e7d1911e551b451ac406cc
drm/amdgpu: Use vma_lookup() in amdgpu_ttm_tt_get_user_pages()

Use vma_lookup() to find the VMA at a specific address.  As vma_lookup()
will return NULL if the address is not within any VMA, the start address
no longer needs to be validated.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c