Commit 99770da7 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] Print real error when initramfs gunzip failed

Print the real error when initramfs gunzip failed.  gunzip already sets up
message correctly.
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c84fe44e
......@@ -445,8 +445,7 @@ char * __init unpack_to_rootfs(char *buf, unsigned len, int check_only)
bytes_out = 0;
crc = (ulg)0xffffffffL; /* shift register contents */
makecrc();
if (gunzip())
message = "ungzip failed";
gunzip();
if (state != Reset)
error("junk in gzipped archive");
this_header = saved_offset + inptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment