mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
7de8fe2fa8
commit
b61edf8e7c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue