aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init/initramfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/init/initramfs.c b/init/initramfs.c
index d28c1094d7e5..85f04037ade1 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -182,6 +182,10 @@ static int __init do_collect(void)
182 182
183static int __init do_header(void) 183static int __init do_header(void)
184{ 184{
185 if (memcmp(collected, "070707", 6)==0) {
186 error("incorrect cpio method used: use -H newc option");
187 return 1;
188 }
185 if (memcmp(collected, "070701", 6)) { 189 if (memcmp(collected, "070701", 6)) {
186 error("no cpio magic"); 190 error("no cpio magic");
187 return 1; 191 return 1;