]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/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, 11 May 2021 01:40:03 +0000 (21:40 -0400)
commite1a182ab0a33132598cd0d43d612f625fde5f32a
tree97e9d76b2ab6fe30e163f44287d7d7cf86b43080
parent0ef51b885c90cf810e3b6ca6d600944b72cb8d7e
mm/mmap: Use find_vma_intersection() in do_mmap() for overlap

Using find_vma_intersection() avoids the need for a temporary variable
and makes the code cleaner.

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