Merge branch 'linus' into x86/setup-lzma
[linux-3.10.git] / init / initramfs.c
index 2f42984e55821ff7d51376942e4e8a063e6d8ec7..f8241e832aa39056a7ca0803956e1094ef3fd0f4 100644 (file)
@@ -317,6 +317,7 @@ static int __init do_name(void)
                        if (wfd >= 0) {
                                sys_fchown(wfd, uid, gid);
                                sys_fchmod(wfd, mode);
+                               sys_ftruncate(wfd, body_len);
                                vcollected = kstrdup(collected, GFP_KERNEL);
                                state = CopyFile;
                        }