LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH]: Bug in MM_RB debugging?
@ 2007-02-27 19:19 David Miller
  0 siblings, 0 replies; only message in thread
From: David Miller @ 2007-02-27 19:19 UTC (permalink / raw)
  To: linux-kernel


The code is seemingly trying to make sure that rb_next()
brings us to successive increasing vma entries.

But the two variables, prev and pend, used to perform these
checks, are never advanced.

Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/mm/mmap.c b/mm/mmap.c
index eb509ae..84f997d 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -299,6 +299,8 @@ static int browse_rb(struct rb_root *root)
 			printk("vm_end %lx < vm_start %lx\n", vma->vm_end, vma->vm_start);
 		i++;
 		pn = nd;
+		prev = vma->vm_start;
+		pend = vma->vm_end;
 	}
 	j = 0;
 	for (nd = pn; nd; nd = rb_prev(nd)) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-27 19:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-27 19:19 [PATCH]: Bug in MM_RB debugging? David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).