diff options
author | 2002-06-11 04:34:30 +0000 | |
---|---|---|
committer | 2002-06-11 04:34:30 +0000 | |
commit | 9b9bbb078370a0567538bffa10de63e2491db66a (patch) | |
tree | 6011b946d7098cef961689b13a79f735aa7dfc81 /sys/kern/kern_malloc_debug.c | |
parent | sprinkle splasserts where function comments tell us to. (diff) | |
download | wireguard-openbsd-9b9bbb078370a0567538bffa10de63e2491db66a.tar.xz wireguard-openbsd-9b9bbb078370a0567538bffa10de63e2491db66a.zip |
splassert where needed
Diffstat (limited to 'sys/kern/kern_malloc_debug.c')
-rw-r--r-- | sys/kern/kern_malloc_debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_malloc_debug.c b/sys/kern/kern_malloc_debug.c index 582467d5de0..b29aaf74daf 100644 --- a/sys/kern/kern_malloc_debug.c +++ b/sys/kern/kern_malloc_debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_malloc_debug.c,v 1.16 2002/01/23 00:39:47 art Exp $ */ +/* $OpenBSD: kern_malloc_debug.c,v 1.17 2002/06/11 04:34:30 art Exp $ */ /* * Copyright (c) 1999, 2000 Artur Grabowski <art@openbsd.org> @@ -231,6 +231,8 @@ debug_malloc_allocate_free(int wait) struct vm_page *pg; struct debug_malloc_entry *md; + splassert(IPL_VM); + md = pool_get(&debug_malloc_pool, wait ? PR_WAITOK : PR_NOWAIT); if (md == NULL) return; |