summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_clist.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_clist.c')
-rw-r--r--sys/kern/subr_clist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_clist.c b/sys/kern/subr_clist.c
index e4da151..165f628 100644
--- a/sys/kern/subr_clist.c
+++ b/sys/kern/subr_clist.c
@@ -135,8 +135,8 @@ cblock_alloc_cblocks(number)
cbp = malloc(sizeof *cbp, M_TTYS, M_NOWAIT);
if (cbp == NULL) {
printf(
-"cblock_alloc_cblocks: M_NOWAIT malloc failed, trying blocking malloc\n");
- cbp = malloc(sizeof *cbp, M_TTYS, 0);
+"cblock_alloc_cblocks: M_NOWAIT malloc failed, trying M_WAITOK\n");
+ cbp = malloc(sizeof *cbp, M_TTYS, M_WAITOK);
}
/*
* Freed cblocks have zero quotes and garbage elsewhere.
OpenPOWER on IntegriCloud