]> 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>
Fri, 18 Jun 2021 00:38:51 +0000 (20:38 -0400)
commit5e51c1b2d799d631b4107155066e54de6fdb2bbb
tree651d4fd798f1648eb53a26358a0530f3fdc03d34
parentd1ee402855b62827b172d99d15b404b809e52b64
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