]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/mmap: Move VM_BUG_ON inside other check for maple tree
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 6 May 2020 01:18:56 +0000 (21:18 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 19:04:40 +0000 (15:04 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
mm/mmap.c

index 4268a626bee09964e8ef47f3ddfb96b65a9600bd..327fae2b9af46ed3817f0c3575056d342e9a722f 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -2401,8 +2401,8 @@ found_highest:
                                dv = dv->vm_next;
                        }
                }
+               VM_BUG_ON(gap != gap_end);
        }
-       VM_BUG_ON(gap != gap_end);
 
        return gap_end;
 }