summaryrefslogtreecommitdiffstats
path: root/sys/vm/uma_dbg.c
diff options
context:
space:
mode:
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