From b61edf8e7cf9d8d450b65588b2ff40dfb8c2fd9b Mon Sep 17 00:00:00 2001 From: Aruna Balakrishnaiah Date: Wed, 11 Sep 2013 10:58:03 -0700 Subject: pstore: Use zlib_inflateInit2 instead of zlib_inflateInit Since zlib_deflateInit2() is used for specifying window bit during compression, zlib_inflateInit2() is appropriate for decompression. Reported-by: Seiji Aguchi Tested-by: Seiji Aguchi Signed-off-by: Aruna Balakrishnaiah Signed-off-by: Tony Luck --- fs/pstore/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs') diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 57b4219398cd..c853e05cd7f6 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -168,7 +168,7 @@ static int pstore_decompress(void *in, void *out, size_t inlen, size_t outlen) int err, ret; ret = -EIO; - err = zlib_inflateInit(&stream); + err = zlib_inflateInit2(&stream, WINDOW_BITS); if (err != Z_OK) goto error; -- cgit v1.2.2