summaryrefslogtreecommitdiffstats
path: root/sys/kern/inflate.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
committerimp <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
commitcf874b345d0f766fb64cf4737e1c85ccc78d2bee (patch)
tree9e20e320fe15ae4bf68f8335fcf9d3e71d3b3614 /sys/kern/inflate.c
parentb72619cecb8265d3efb3781b0acff1380762c173 (diff)
downloadFreeBSD-src-cf874b345d0f766fb64cf4737e1c85ccc78d2bee.zip
FreeBSD-src-cf874b345d0f766fb64cf4737e1c85ccc78d2bee.tar.gz
Back out M_* changes, per decision of the TRB.
Approved by: trb
Diffstat (limited to 'sys/kern/inflate.c')
-rw-r--r--sys/kern/inflate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/inflate.c b/sys/kern/inflate.c
index e814294..2a16ba2 100644
--- a/sys/kern/inflate.c
+++ b/sys/kern/inflate.c
@@ -551,7 +551,7 @@ huft_build(glbl, b, n, s, d, e, t, m)
l[h] = j; /* set table size in stack */
/* allocate and link in new table */
- if ((q = (struct huft *) malloc((z + 1) * sizeof(struct huft), M_GZIP, 0)) ==
+ if ((q = (struct huft *) malloc((z + 1) * sizeof(struct huft), M_GZIP, M_WAITOK)) ==
(struct huft *) NULL) {
if (h)
huft_free(glbl, u[0]);
@@ -1049,7 +1049,7 @@ inflate(glbl)
u_char *p = NULL;
if (!glbl->gz_slide)
- p = glbl->gz_slide = malloc(GZ_WSIZE, M_GZIP, 0);
+ p = glbl->gz_slide = malloc(GZ_WSIZE, M_GZIP, M_WAITOK);
#endif
if (!glbl->gz_slide)
#ifdef _KERNEL
OpenPOWER on IntegriCloud