diff options
| author | David Miller <davem@davemloft.net> | 2007-02-28 23:13:13 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-01 17:53:38 -0500 |
| commit | d1af65d13f3625543916a85c86d02826df910fcf (patch) | |
| tree | 6f04906a3837bd92d89751925e2b4937439e74c0 /mm | |
| parent | 04a51e66adcdc0de6ffaa488934ce3ffb3818ecf (diff) | |
[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: David S. Miller <davem@davemloft.net>
Cc: Andrea Arcangeli <andrea@novell.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/mmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -299,6 +299,8 @@ static int browse_rb(struct rb_root *root) | |||
| 299 | printk("vm_end %lx < vm_start %lx\n", vma->vm_end, vma->vm_start); | 299 | printk("vm_end %lx < vm_start %lx\n", vma->vm_end, vma->vm_start); |
| 300 | i++; | 300 | i++; |
| 301 | pn = nd; | 301 | pn = nd; |
| 302 | prev = vma->vm_start; | ||
| 303 | pend = vma->vm_end; | ||
| 302 | } | 304 | } |
| 303 | j = 0; | 305 | j = 0; |
| 304 | for (nd = pn; nd; nd = rb_prev(nd)) { | 306 | for (nd = pn; nd; nd = rb_prev(nd)) { |
