]> git.pld-linux.org Git - packages/kernel.git/blame - linux-2.4.20-initrd-close-fds.patch
- fix unresolved symbols in ipv6 netfilter
[packages/kernel.git] / linux-2.4.20-initrd-close-fds.patch
CommitLineData
dc21b995
JR
1The initrd refuses to work for me without the attached patch
2(actually, initrd works, but nothing else does: console is hosed).
3I did not see anything on the list. Am I the only one who
4uses initrd?
5
6-- Pete
7
8--- linux-2.4.21-pre5/init/do_mounts.c 2003-03-12 21:21:05.000000000 -0800
9+++ linux-2.4.21-pre5-nip/init/do_mounts.c 2003-03-12 21:43:03.000000000 -0800
10@@ -813,6 +813,8 @@
11 sys_fchdir(root_fd);
12 sys_chroot(".");
13 sys_umount("/old/dev", 0);
14+ close(old_fd);
15+ close(root_fd);
16
17 if (real_root_dev == ram0) {
18 sys_chdir("/old");
19-
20To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
21the body of a message to majordomo@vger.kernel.org
22More majordomo info at http://vger.kernel.org/majordomo-info.html
23Please read the FAQ at http://www.tux.org/lkml/
This page took 0.3727 seconds and 4 git commands to generate.