Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reported-by: youling 257 <[email protected]> Fixes: 8243186 ("fs: remove ksys_dup()") Cc: Dominik Brodowski <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information