Re: BUG: Current 2.5-BK tree dies on boot!

Anton Blanchard (anton@samba.org)
Thu, 19 Sep 2002 08:58:28 +1000


> This is without preempt. I tried both with and without SMP, with and without
> large TLB pages, with and without pte highmem, all die in the same place.

I needed this to boot the latest BK on my ppc64 box. The question is
why we are suddenly ending up with prev == NULL, hch mentioned his
patch was only a cleanup in this area.

Anton

===== mm/mprotect.c 1.16 vs edited =====
--- 1.16/mm/mprotect.c Wed Sep 18 04:05:14 2002
+++ edited/mm/mprotect.c Wed Sep 18 22:44:40 2002
@@ -281,7 +281,7 @@
}
}

- if (next && prev->vm_end == next->vm_start &&
+ if (prev && next && prev->vm_end == next->vm_start &&
can_vma_merge(next, prev->vm_flags) &&
!prev->vm_file && !(prev->vm_flags & VM_SHARED)) {
spin_lock(&prev->vm_mm->page_table_lock);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/