summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2019-12-19 17:40:10 +0000
committermpi <mpi@openbsd.org>2019-12-19 17:40:10 +0000
commitbabb761de1ba2d43bc3717c713c02b0d14e11db2 (patch)
treeb91dc29659e146a7f8c9888c966cb7aea48344d4 /sys/kern/kern_malloc.c
parentwider list width to adjust for previous; (diff)
downloadwireguard-openbsd-babb761de1ba2d43bc3717c713c02b0d14e11db2.tar.xz
wireguard-openbsd-babb761de1ba2d43bc3717c713c02b0d14e11db2.zip
Convert infinite sleeps to {m,t}sleep_nsec(9).
ok visa@
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r--sys/kern/kern_malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index eaa4c6fbe4a..8efb291db63 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_malloc.c,v 1.140 2019/11/28 16:23:11 guenther Exp $ */
+/* $OpenBSD: kern_malloc.c,v 1.141 2019/12/19 17:40:11 mpi Exp $ */
/* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */
/*
@@ -218,7 +218,7 @@ malloc(size_t size, int type, int flags)
#endif
if (ksp->ks_limblocks < 65535)
ksp->ks_limblocks++;
- msleep(ksp, &malloc_mtx, PSWP+2, memname[type], 0);
+ msleep_nsec(ksp, &malloc_mtx, PSWP+2, memname[type], INFSLP);
}
ksp->ks_memuse += allocsize; /* account for this early */
ksp->ks_size |= 1 << indx;