From: Liam R. Howlett Date: Wed, 5 Apr 2023 15:43:07 +0000 (-0400) Subject: mm/mmap: Change do_vmi_align_munmap() for maple tree iterator changes X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5c6e2e3ece2a979e71b641ac76a2dd84b59cf7eb;p=users%2Fjedix%2Flinux-maple.git mm/mmap: Change do_vmi_align_munmap() for maple tree iterator changes The maple tree iterator clean up is incompatible with the way do_vmi_align_munmap() expects it to behave. Update the expected behaviour to map now since the change will work currently. Signed-off-by: Liam R. Howlett --- diff --git a/mm/mmap.c b/mm/mmap.c index c374ff80eb69..36fb185e91b7 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2429,6 +2429,8 @@ do_mas_align_munmap(struct ma_state *mas, struct vm_area_struct *vma, #endif } + if (mas->last >= end) + next = mas_walk(mas); if (!next) next = mas_next(mas, ULONG_MAX);