--- mm/mmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/mmap.c b/mm/mmap.c index 621109f869d8..e49add0bbf37 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1407,6 +1407,8 @@ unsigned long mmap_region(struct file *file, unsigned long addr, if (error) goto gather_failed; + vma_iter_config(&vmi, addr, end); + vmg.next = vms.next; vmg.prev = vms.prev; -- 2.46.2