diff options
author | 2019-12-17 13:10:11 -0800 | |
---|---|---|
committer | 2019-12-17 13:10:11 -0800 | |
commit | 2d3145f8d2809592ef803a30c8a342b5a9e2de9a (patch) | |
tree | 6bc66d13f1815e181d3fac34e13b524a769940e0 /scripts/mod | |
parent | Merge tag 'regulator-fix-v5.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator (diff) | |
download | linux-dev-2d3145f8d2809592ef803a30c8a342b5a9e2de9a.tar.xz linux-dev-2d3145f8d2809592ef803a30c8a342b5a9e2de9a.zip |
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: 8243186f0cc7 ("fs: remove ksys_dup()")
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/mod')
0 files changed, 0 insertions, 0 deletions