diff --git a/mm/mmap.c b/mm/mmap.c index e53637f8ac428566dd42b0469f45f2b14339669e..aa29d43130b3ec00f424d6ef7a3019d7599f03c9 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -706,7 +706,7 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start, * If next doesn't have anon_vma, import from vma after * next, if the vma overlaps with it. */ - if (remove_next == 2 && next && !next->anon_vma) + if (remove_next == 2 && !next->anon_vma) exporter = next->vm_next; } else if (end > next->vm_start) {