]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit2a5db085e22428f1fc774093fd8cfde7a9f0db20
tree09a0e360c6b687a93e1a2a35b3f6e820b1b1c14e
parentaedb869bc2355b4a39cf2f03879b1d6e2119ecb0
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