From c9d706fece3601474473ace1b8b3ae613eb38075 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Mon, 5 Jul 2010 15:42:40 +0800 Subject: [PATCH] fix initramfs bug, same as df37bd156dcb4f5441beaf5bde444adac974e9a0 --- init/initramfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init/initramfs.c b/init/initramfs.c index 4c00edc59689..f7ae1992a774 100644 --- a/init/initramfs.c +++ b/init/initramfs.c @@ -458,6 +458,8 @@ static char * __init unpack_to_rootfs(char *buf, unsigned len) } if (state != Reset) error("junk in compressed archive"); + else + break; this_header = saved_offset + my_inptr; buf += my_inptr; len -= my_inptr; -- 2.34.1