summaryrefslogtreecommitdiff
path: root/lib/decompress.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-07-21 08:57:44 +0300
committerIngo Molnar <mingo@kernel.org>2015-07-21 08:57:44 +0300
commitf6a74a5e15df32f289837feeabf8c84829312b06 (patch)
treec8d16b12ef76c7a9e21693d1bad31f59f78436cd /lib/decompress.c
parent60cd37eb100c4880b28078a47f3062fac7572095 (diff)
parent9d634c410b07be7bf637ea03362d3ff132088fe3 (diff)
downloadlinux-f6a74a5e15df32f289837feeabf8c84829312b06.tar.xz
Merge branch 'linus' into perf/core, to refresh the branch
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/decompress.c')
-rw-r--r--lib/decompress.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/decompress.c b/lib/decompress.c
index 528ff932d8e4..62696dff5730 100644
--- a/lib/decompress.c
+++ b/lib/decompress.c
@@ -59,8 +59,11 @@ decompress_fn __init decompress_method(const unsigned char *inbuf, long len,
{
const struct compress_format *cf;
- if (len < 2)
+ if (len < 2) {
+ if (name)
+ *name = NULL;
return NULL; /* Need at least this much... */
+ }
pr_debug("Compressed data magic: %#.2x %#.2x\n", inbuf[0], inbuf[1]);