From e0761dde75d1654611b3b3c77c4e37f891933596 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Wed, 17 Feb 2021 09:19:38 -0500 Subject: [PATCH] mm/mmap: ULONG_MAX in do_brk_munmap Signed-off-by: Liam R. Howlett --- mm/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mmap.c b/mm/mmap.c index 437017b5555ed..bd3d34f2fde31 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2950,7 +2950,7 @@ static int do_brk_munmap(struct ma_state *mas, struct vm_area_struct *vma, ret = 1; ma_next = *mas; - next = mas_next(&ma_next, -1); + next = mas_next(&ma_next, ULONG_MAX); // Change the oldbrk of vma to the newbrk of the munmap area vma_adjust_trans_huge(vma, vma->vm_start, newbrk, 0); if (vma->anon_vma) { -- 2.50.1