projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7de8fe2
)
pstore: Use zlib_inflateInit2 instead of zlib_inflateInit
author
Aruna Balakrishnaiah
<aruna@linux.vnet.ibm.com>
Wed, 11 Sep 2013 17:58:03 +0000
(10:58 -0700)
committer
Tony 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/pstore/platform.c
b/fs/pstore/platform.c
index 57b4219398cdf8e0661a63d567c04034b28c575b..c853e05cd7f6608596fe998687b72535554f358d 100644
(file)
--- 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_inflateInit
2(&stream, WINDOW_BITS
);
if (err != Z_OK)
goto error;