]> 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>
Thu, 15 Apr 2021 14:37:32 +0000 (10:37 -0400)
commit344cdbf0a64bc5a50eea28c809c16b5882650282
tree6b7fc1c6395d04453606ca2d548ed914b202f07c
parent3950f2ee185c0f9c0dc85a6239683bfffd59489b
drm/amdgpu: Use vma_lookup() in amdgpu_ttm_tt_get_user_pages()

Using vma_lookup() allows for cleaner code as the vma start address
validation is not needed, as apposed to find_vma().

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