]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mremap: Use vma_lookup() in vma_to_resize()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 8 Apr 2021 20:26:13 +0000 (16:26 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 10 May 2021 16:39:28 +0000 (12:39 -0400)
commit042a43daf91d79c83c7402eb771f397e468e3eb7
tree0f0cd1e88ffec6b1d0fd8c418cbce4ac6a9034c3
parentda4442160cb9ecb9a022a4435a280ac0960cf4b4
mm/mremap: Use vma_lookup() in vma_to_resize()

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>
mm/mremap.c