aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-03-08 06:16:27 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-03-09 11:16:39 +0000
commit1ae20f7c70ea16fa8b702e409030e170df4f5c13 (patch)
treec808404d03cd3075b44259bae76c349f1b351f98
parente80e371d79d825712a9078e0d1a14b62567291c4 (diff)
downloadsrc-1ae20f7c70ea16fa8b702e409030e170df4f5c13.tar.gz
src-1ae20f7c70ea16fa8b702e409030e170df4f5c13.zip
kern: malloc: fix panic on M_WAITOK during THREAD_NO_SLEEPING()
Simple condition flip; we wanted to panic here after epoch_trace_list(). Reviewed by: glebius, markj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D29125
-rw-r--r--sys/kern/kern_malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index 48383358e3ad..0d6f9dcfcab7 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -537,7 +537,7 @@ malloc_dbg(caddr_t *vap, size_t *sizep, struct malloc_type *mtp,
#ifdef EPOCH_TRACE
epoch_trace_list(curthread);
#endif
- KASSERT(1,
+ KASSERT(0,
("malloc(M_WAITOK) with sleeping prohibited"));
}
}