]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/selftests: Use vma_lookup() in __igt_mmap()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 8 Apr 2021 17:32:57 +0000 (13:32 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 6 May 2021 17:25:45 +0000 (13:25 -0400)
commitcf5d86c195f5a27c2d8f246f5af102218503aa96
treebc4668cd4c961360f955a64be574fe7cef8d4bf9
parent80f4c6f900316631be83b332e29fb458ad9de3eb
drm/i915/selftests: Use vma_lookup() in __igt_mmap()

vma_lookup() will look up the vma at a specific address.  find_vma()
will start the search for a specific address and continue upwards.  This
fixes an issue with the selftest as the returned vma may not be the
newly created vma, but simply the vma at a higher address.

Fixes: 6fedafacae1b (drm/i915/selftests: Wrap vm_mmap() around GEM
objects
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c