]> git.baikalelectronics.ru Git - kernel.git/commit
init: open code setting up stdin/stdout/stderr
authorChristoph Hellwig <hch@lst.de>
Sun, 7 Jun 2020 15:44:28 +0000 (17:44 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 Jul 2020 06:16:00 +0000 (08:16 +0200)
commit4bef7a7170948e2eb395f105a0da319e8945d474
treeb882c3795401b79acc3adf7bb7a329bb5dbe3b34
parentc3a3aae7bb7e8899e1f21899314540a11ac0a1d0
init: open code setting up stdin/stdout/stderr

Don't rely on the implicit set_fs(KERNEL_DS) for ksys_open to work, but
instead open a struct file for /dev/console and then install it as FD
0/1/2 manually.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
init/main.c