From: Liam R. Howlett Date: Wed, 17 Feb 2021 14:19:25 +0000 (-0500) Subject: mm/mmap: ULONG_MAX in detach_range X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=982bdf4b47180f2651fdc47da5d0d052a5a70814;p=users%2Fjedix%2Flinux-maple.git mm/mmap: ULONG_MAX in detach_range Signed-off-by: Liam R. Howlett --- diff --git a/mm/mmap.c b/mm/mmap.c index 6c237080279d0..437017b5555ed 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2334,7 +2334,7 @@ static inline unsigned long detach_range(struct mm_struct *mm, mas_set(&mas, src->last + 1); /* Drop removed area from the tree */ - *vma = mas_find(&mas, -1); + *vma = mas_find(&mas, ULONG_MAX); mas_store_gfp(src, NULL, GFP_KERNEL); /* Decrement map_count */ mm->map_count -= count;