summaryrefslogtreecommitdiffstats
path: root/sys/vm/uma_dbg.c
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2005-06-26 23:44:07 +0000
committersilby <silby@FreeBSD.org>2005-06-26 23:44:07 +0000
commit64582f399573df6ad83482e88df55d66b94b8fdb (patch)
tree48174812684d59a29c00ed3e6c35005609514e06 /sys/vm/uma_dbg.c
parent79ac1f3888f7beea06b185083943e2dc7c93f63a (diff)
downloadFreeBSD-src-64582f399573df6ad83482e88df55d66b94b8fdb.zip
FreeBSD-src-64582f399573df6ad83482e88df55d66b94b8fdb.tar.gz
Change the panic in trash_ctor into just a printf for now. Once the reports
of panics in trash_ctor relating to mbufs have been examined and a fix found, this will be turned back into a panic. Approved by: re (rwatson)
Diffstat (limited to 'sys/vm/uma_dbg.c')
-rw-r--r--sys/vm/uma_dbg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/uma_dbg.c b/sys/vm/uma_dbg.c
index d6a8c6d..e8cd240 100644
--- a/sys/vm/uma_dbg.c
+++ b/sys/vm/uma_dbg.c
@@ -68,9 +68,11 @@ trash_ctor(void *mem, int size, void *arg, int flags)
cnt = size / sizeof(uma_junk);
for (p = mem; cnt > 0; cnt--, p++)
- if (*p != uma_junk)
- panic("Memory modified after free %p(%d) val=%x @ %p\n",
+ if (*p != uma_junk) {
+ printf("Memory modified after free %p(%d) val=%x @ %p\n",
mem, size, *p, p);
+ return (0);
+ }
return (0);
}
OpenPOWER on IntegriCloud