Commit 1ae20f7c authored by Kyle Evans's avatar Kyle Evans
Browse files

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
parent e80e371d
...@@ -537,7 +537,7 @@ malloc_dbg(caddr_t *vap, size_t *sizep, struct malloc_type *mtp, ...@@ -537,7 +537,7 @@ malloc_dbg(caddr_t *vap, size_t *sizep, struct malloc_type *mtp,
#ifdef EPOCH_TRACE #ifdef EPOCH_TRACE
epoch_trace_list(curthread); epoch_trace_list(curthread);
#endif #endif
KASSERT(1, KASSERT(0,
("malloc(M_WAITOK) with sleeping prohibited")); ("malloc(M_WAITOK) with sleeping prohibited"));
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment