]> 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>
Wed, 14 Apr 2021 19:36:57 +0000 (15:36 -0400)
commitbee14593a2a994b84e9f19f2961e626307275ff2
tree850d24e5f3309c741f86faab7cd3fa4db5d05b65
parent72b4dad4a2ccceb46355d0a9f114e584a2e197df
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