Commit d1af65d1 authored by David Miller's avatar David Miller Committed by Linus Torvalds

[PATCH] Bug in MM_RB debugging

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: default avatarDavid S. Miller <davem@davemloft.net>
Cc: Andrea Arcangeli <andrea@novell.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 04a51e66
...@@ -299,6 +299,8 @@ static int browse_rb(struct rb_root *root) ...@@ -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); printk("vm_end %lx < vm_start %lx\n", vma->vm_end, vma->vm_start);
i++; i++;
pn = nd; pn = nd;
prev = vma->vm_start;
pend = vma->vm_end;
} }
j = 0; j = 0;
for (nd = pn; nd; nd = rb_prev(nd)) { for (nd = pn; nd; nd = rb_prev(nd)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment