Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Merge "This patch includes scripts to enhance the apex build support feature for...
[kvmfornfv.git]
/
kernel
/
lib
/
decompress.c
diff --git
a/kernel/lib/decompress.c
b/kernel/lib/decompress.c
index
528ff93
..
62696df
100644
(file)
--- a/
kernel/lib/decompress.c
+++ b/
kernel/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]);