mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][RESEND] mm: fix uninitialized variables for find_vma_prepare callers
@ 2008-08-01 15:13 Ryan Hope
  2008-08-01 15:15 ` Ryan Hope
  2008-08-01 17:31 ` Hugh Dickins
  0 siblings, 2 replies; 4+ messages in thread
From: Ryan Hope @ 2008-08-01 15:13 UTC (permalink / raw)
  To: LKML, Andrew Morton

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;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-01 18:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-01 15:13 [PATCH][RESEND] mm: fix uninitialized variables for find_vma_prepare callers Ryan Hope
2008-08-01 15:15 ` Ryan Hope
2008-08-01 17:31 ` Hugh Dickins
2008-08-01 18:08   ` Ryan Hope

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®