
From: Andi Kleen <ak@suse.de>

Only the printk alone is not too useful, print the backtrace too.

Signed-off-by:  Andrew Morton <akpm@osdl.org>
---

 25-akpm/mm/vmalloc.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN mm/vmalloc.c~print-backtrace-for-bad-vfree mm/vmalloc.c
--- 25/mm/vmalloc.c~print-backtrace-for-bad-vfree	Wed May 26 15:36:49 2004
+++ 25-akpm/mm/vmalloc.c	Wed May 26 15:36:49 2004
@@ -283,6 +283,7 @@ void __vunmap(void *addr, int deallocate
 
 	if ((PAGE_SIZE-1) & (unsigned long)addr) {
 		printk(KERN_ERR "Trying to vfree() bad address (%p)\n", addr);
+		WARN_ON(1);
 		return;
 	}
 
@@ -290,6 +291,7 @@ void __vunmap(void *addr, int deallocate
 	if (unlikely(!area)) {
 		printk(KERN_ERR "Trying to vfree() nonexistent vm area (%p)\n",
 				addr);
+		WARN_ON(1);
 		return;
 	}
 	
_
