diff options
author | Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com> | 2013-09-11 19:58:03 +0200 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2013-09-16 18:28:29 +0200 |
commit | b61edf8e7cf9d8d450b65588b2ff40dfb8c2fd9b (patch) | |
tree | a5327e81ce5912dbc130f62550a983369e85921b /fs/pstore/platform.c | |
parent | pstore: Adjust buffer size for compression for smaller registered buffers (diff) | |
download | linux-b61edf8e7cf9d8d450b65588b2ff40dfb8c2fd9b.tar.xz linux-b61edf8e7cf9d8d450b65588b2ff40dfb8c2fd9b.zip |
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 <seiji.aguchi@hds.com>
Tested-by: Seiji Aguchi <seiji.aguchi@hds.com>
Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'fs/pstore/platform.c')
-rw-r--r-- | fs/pstore/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |