kernel_optimize_test/init
Linus Torvalds 2d3145f8d2 early init: fix error handling when opening /dev/console
The comment says "this should never fail", but it definitely can fail
when you have odd initial boot filesystems, or kernel configurations.

So get the error handling right: filp_open() returns an error pointer.

Reported-by: Jesse Barnes <jsbarnes@google.com>
Reported-by: youling 257 <youling257@gmail.com>
Fixes: 8243186f0c ("fs: remove ksys_dup()")
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-12-17 13:10:11 -08:00
..
calibrate.c
do_mounts_initrd.c init: unify opening /dev/console as stdin/stdout/stderr 2019-12-12 18:58:24 +01:00
do_mounts_md.c
do_mounts_rd.c
do_mounts.c Fix root mounting with no mount options 2019-12-16 08:42:39 -08:00
do_mounts.h
init_task.c
initramfs.c
Kconfig init/Kconfig: fix indentation 2019-12-04 19:44:13 -08:00
main.c early init: fix error handling when opening /dev/console 2019-12-17 13:10:11 -08:00
Makefile
noinitramfs.c
version.c