X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=crypto%2Fzlib.c;h=739b8fca4cea518777f569372ded2e0b751dcd49;hb=dc8e7e3ec60bd5ef7868aa88755e9d4c948dc5cc;hp=c3015733c9909cbf90554477a79430b1a31ab286;hpb=8123e8f7c89a07cb22279b15bf47cdee0205d4a1;p=mv-sheeva.git diff --git a/crypto/zlib.c b/crypto/zlib.c index c3015733c99..739b8fca4ce 100644 --- a/crypto/zlib.c +++ b/crypto/zlib.c @@ -95,11 +95,10 @@ static int zlib_compress_setup(struct crypto_pcomp *tfm, void *params, zlib_comp_exit(ctx); workspacesize = zlib_deflate_workspacesize(); - stream->workspace = vmalloc(workspacesize); + stream->workspace = vzalloc(workspacesize); if (!stream->workspace) return -ENOMEM; - memset(stream->workspace, 0, workspacesize); ret = zlib_deflateInit2(stream, tb[ZLIB_COMP_LEVEL] ? nla_get_u32(tb[ZLIB_COMP_LEVEL])