efi_loader: NULL dereference in EFI console
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 16 Mar 2021 11:56:57 +0000 (12:56 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 25 Mar 2021 19:08:57 +0000 (20:08 +0100)
commit134d3387e1b794bbe1ba1747232f15d9376632c9
tree09a0e360c6b687a93e1a2a35b3f6e820b1b1c14e
parentdf7d89a6fcd1920944c2e8b257525b3fb7226dbe
efi_loader: NULL dereference in EFI console

Even if CONFIG_DM_VIDEO=y and stdout="vidconsole", a video device may not
be available. Check the return values of the relevant functions.

If no video output device is available, assume that the serial console is
in use.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_console.c