]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/mmap: Change do_vmi_align_munmap() for maple tree iterator changes
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 5 Apr 2023 15:43:07 +0000 (11:43 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 21 Apr 2023 14:11:25 +0000 (10:11 -0400)
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 <Liam.Howlett@oracle.com>
mm/mmap.c

index fe1db604dc49e002cd233ff1a41cdbb5a5ab529d..391ade554742e478dc2d4ed2ae6ebb9d59eb4d83 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -2385,6 +2385,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);