]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: Fix detach_range() and do_mas_align_munmap()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Sun, 7 Feb 2021 00:44:50 +0000 (19:44 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Sun, 7 Feb 2021 01:21:17 +0000 (20:21 -0500)
commit33c682af410573b9ef3c21d887e8480d3cfc6d9c
tree4cc73f62898d6e19d6f55614dd630424ef10ce4f
parenta297abf2b0ca4bb2b57be9b556e5e8a0cef7d3ec
mm/mmap: Fix detach_range() and do_mas_align_munmap()

When searching for the first entry overlapp in do_mas_align_munmap(), the mas->last
will be modified if one is found, and if the maple state isn't reset for splitting,
then the wrong end will be past to detach_range() in the maple state.

detach_range() no longer needs both vma and vm_area_struct last, so make that change
too.

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