LKML Archive on
help / color / mirror / Atom feed
From: David Miller <>
Subject: [PATCH]: Bug in MM_RB debugging?
Date: Tue, 27 Feb 2007 11:19:00 -0800 (PST)	[thread overview]
Message-ID: <> (raw)

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 <>

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);
 		pn = nd;
+		prev = vma->vm_start;
+		pend = vma->vm_end;
 	j = 0;
 	for (nd = pn; nd; nd = rb_prev(nd)) {

                 reply	other threads:[~2007-02-27 19:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --subject='Re: [PATCH]: Bug in MM_RB debugging?' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).