]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmap: Use find_vma_intersection in do_mmap() for overlap
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 24 Nov 2020 21:23:38 +0000 (16:23 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 14 Jan 2021 01:33:55 +0000 (20:33 -0500)
commitc22def512750c832a383e5f975976c4b7054de3c
tree602f5f9a060448987fd22d9f28f28f94ef332cff
parent0b69ac8ccd8255ce6697cb5544590e7cb7990cf2
mmap: Use find_vma_intersection in do_mmap() for overlap

When detecting a conflict with MAP_FIXED_NOREPLACE, using the new interface avoids
the need for a temp variable

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
mm/mmap.c