Signed-off-by: Liam R. Howlett <Liam.Howlett@xxxxxxxxxx> --- mm/madvise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/madvise.c b/mm/madvise.c index 13f5677b93222..0da3c9a5f5b82 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -1151,7 +1151,7 @@ int do_madvise(struct mm_struct *mm, unsigned long start, size_t len_in, int beh if (start >= end) goto out; if (prev) - vma = prev->vm_next; + vma = vma_next(mm, prev); else /* madvise_remove dropped mmap_lock */ vma = find_vma(mm, start); } -- 2.28.0