diff --git a/mm/mmap.c b/mm/mmap.c index 245c3d69067b7bc4c0b83ba2fa6a08df28bc7f9b..971d0eda754a539d73d669fa8d91bd2459f10715 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -370,7 +370,7 @@ find_vma_prepare(struct mm_struct *mm, unsigned long addr, if (vma_tmp->vm_end > addr) { vma = vma_tmp; if (vma_tmp->vm_start <= addr) - return vma; + break; __rb_link = &__rb_parent->rb_left; } else { rb_prev = __rb_parent;