[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <48f7fe350808010813u4e71c3e7h4d25127533a12726@mail.gmail.com>
Date: Fri, 1 Aug 2008 11:13:46 -0400
From: "Ryan Hope" <rmh3093@...il.com>
To: LKML <linux-kernel@...r.kernel.org>,
"Andrew Morton" <akpm@...ux-foundation.org>
Subject: [PATCH][RESEND] mm: fix uninitialized variables for find_vma_prepare callers
This was submitted for 2.6.26-rc8-mm1 but it must have gotten overlooked:
diff --git a/mm/mmap.c b/mm/mmap.c
index 4c5211b..3d65a03 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -372,7 +372,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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists