]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
pstore: Use zlib_inflateInit2 instead of zlib_inflateInit
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Wed, 11 Sep 2013 17:58:03 +0000 (10:58 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 16 Sep 2013 16:28:29 +0000 (09:28 -0700)
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>
fs/pstore/platform.c

index 57b4219398cdf8e0661a63d567c04034b28c575b..c853e05cd7f6608596fe998687b72535554f358d 100644 (file)
@@ -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;