summaryrefslogtreecommitdiff
path: root/crypto/deflate.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-06 21:42:07 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2006-03-21 20:14:08 +1100
commit328cd18c430bae502a34065da01c37317f963850 (patch)
tree86cfee7ad472bd84083c1c3f5e3929bce870920a /crypto/deflate.c
parent1fabeb0261c5d9ce0d2ec0d8f69e03046be44003 (diff)
downloadlinux-crypto-328cd18c430bae502a34065da01c37317f963850.tar.gz
linux-crypto-328cd18c430bae502a34065da01c37317f963850.zip
[CRYPTO] all: Use kzalloc where possible
this patch converts crypto/ to kzalloc usage. Compile tested with allyesconfig. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/deflate.c')
-rw-r--r--crypto/deflate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/deflate.c b/crypto/deflate.c
index bc73342c..f209368d 100644
--- a/crypto/deflate.c
+++ b/crypto/deflate.c
@@ -73,12 +73,11 @@ static int deflate_decomp_init(struct deflate_ctx *ctx)
int ret = 0;
struct z_stream_s *stream = &ctx->decomp_stream;
- stream->workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL);
+ stream->workspace = kzalloc(zlib_inflate_workspacesize(), GFP_KERNEL);
if (!stream->workspace ) {
ret = -ENOMEM;
goto out;
}
- memset(stream->workspace, 0, zlib_inflate_workspacesize());
ret = zlib_inflateInit2(stream, -DEFLATE_DEF_WINBITS);
if (ret != Z_OK) {
ret = -EINVAL;