]> 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>
Tue, 5 Jan 2021 17:33:27 +0000 (12:33 -0500)
commita9e0493d3c4f6e9b36a2ea16b355a42b97cb6ab6
treedb427483a68c4d50747e06fa7a1eaf0c2591653e
parente1d533322b495a134b8a4666be715a9caf7ad32a
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