From: Liam R. Howlett Date: Mon, 5 Jul 2021 19:31:20 +0000 (-0400) Subject: mm: vma_next update for mt_next change X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=298eb912f8bf1694fd5252a177670e7c7e576fed;p=users%2Fjedix%2Flinux-maple.git mm: vma_next update for mt_next change Signed-off-by: Liam R. Howlett --- diff --git a/include/linux/mm.h b/include/linux/mm.h index 265a0f0ddd0fd..58be9711d4615 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2701,7 +2701,7 @@ struct vm_area_struct *vma_lookup(struct mm_struct *mm, unsigned long addr) static inline struct vm_area_struct *vma_next(struct mm_struct *mm, const struct vm_area_struct *vma) { - return mt_next(&mm->mm_mt, vma->vm_end, ULONG_MAX); + return mt_next(&mm->mm_mt, vma->vm_end - 1, ULONG_MAX); } static inline struct vm_area_struct *vma_prev(struct mm_struct *mm,