]> git.dujemihanovic.xyz Git - u-boot.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>
Fri, 19 Mar 2021 19:47:25 +0000 (20:47 +0100)
commita95f4c88599176d9a88dc19c02fa8dd95003eebf
treeee6ba5f4465adea29ffeb070d72c7570e0070d17
parente3310c21a43c1e3c004c6b53ee9179420a1be375
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