]> 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>
Mon, 18 Jan 2021 15:54:54 +0000 (10:54 -0500)
commit0d577cd0ea3ae844827f78c3193c906219eb90f8
tree070ac5d75776d034e4b3c29b29e579bc33fb5655
parentb83e954613d49f1eefb9457a12edfe5970ecad87
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