diff options
Diffstat (limited to 'sys/kern/inflate.c')
-rw-r--r-- | sys/kern/inflate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/inflate.c b/sys/kern/inflate.c index 2a16ba2..e814294 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, M_WAITOK)) == + if ((q = (struct huft *) malloc((z + 1) * sizeof(struct huft), M_GZIP, 0)) == (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, M_WAITOK); + p = glbl->gz_slide = malloc(GZ_WSIZE, M_GZIP, 0); #endif if (!glbl->gz_slide) #ifdef _KERNEL |