summaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-07-09 17:25:27 +0800
committerakpm <akpm@linux-foundation.org>2022-07-17 17:14:48 -0700
commitcdb5c9e53f2e7166409dbf7248364f592d11bd1c (patch)
tree2b7d3bb923a16882940797232d19c64eaa774e99 /mm/mmap.c
parent8f0b747d7dde47e9f6ff64d176ad5fcf0a23d524 (diff)
downloadlinux-cdb5c9e53f2e7166409dbf7248364f592d11bd1c.tar.bz2
mm/mmap: fix obsolete comment of find_extend_vma
mmget_still_valid() has already been removed via commit 4d45e75a9955 ("mm: remove the now-unnecessary mmget_still_valid() hack"). Update the corresponding comment. Link: https://lkml.kernel.org/r/20220709092527.47778-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index edf27a2789a2..d529837bc8c3 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -2541,7 +2541,6 @@ find_extend_vma(struct mm_struct *mm, unsigned long addr)
vma = find_vma_prev(mm, addr, &prev);
if (vma && (vma->vm_start <= addr))
return vma;
- /* don't alter vm_end if the coredump is running */
if (!prev || expand_stack(prev, addr))
return NULL;
if (prev->vm_flags & VM_LOCKED)