From 5131cd5fd6f1a5d9c9b5b0289a6b306bb02bc390 Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 5 Feb 1995 07:08:27 +0000 Subject: [PATCH] Update kmem_malloc() call to new waitflag(s) interface. This might fix recent problems on thud and freefall. --- sys/kern/uipc_mbuf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index a20dd4cfb851..84c017f3f119 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94 - * $Id: uipc_mbuf.c,v 1.5 1994/10/04 06:50:01 phk Exp $ + * $Id: uipc_mbuf.c,v 1.6 1994/10/09 07:34:59 davidg Exp $ */ #include @@ -87,7 +87,8 @@ m_clalloc(ncl, nowait) int npg; npg = ncl * CLSIZE; - p = (caddr_t)kmem_malloc(mb_map, ctob(npg), !nowait); + p = (caddr_t)kmem_malloc(mb_map, ctob(npg), + nowait ? M_NOWAIT : M_WAITOK); if (p == NULL) { if (logged == 0) { logged++;