coreboot-kgpe-d16/payloads/libpayload/drivers
Duncan Laurie 98409cff92 libpayload: corebootfb: Add null check for framebuffer address
If the framebuffer address is zero the corebootfb_init() function
should abort and not attempt to use it for video, otherwise it
will likely hang.

This was tested by booting on a board that does not have a display
attached and includes the previous patch to zero the framebuffer
structure in the coreboot tables.

Change-Id: I53ca2e947a7915cebb31b51e11ac6c310d9d6c55
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/20368
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2017-06-27 02:16:10 +00:00
..
serial libpayload/libc/console: Flush input driver buffer on init 2017-04-19 19:19:56 +02:00
storage libpayload: Add Cougar Point PCH's AHCI to whitelist 2016-12-08 01:36:01 +01:00
timer libpayload: timer: cast cpu_khz to make sure 64bit math is used 2017-01-06 18:40:44 +01:00
udc Remove extra newlines from the end of all coreboot files. 2016-07-31 18:19:33 +02:00
usb libpayload: usbhub: Force enumeration of all connected ports on init 2017-03-15 00:54:23 +01:00
video libpayload: corebootfb: Add null check for framebuffer address 2017-06-27 02:16:10 +00:00
Makefile.inc libpayload: Replace majority of timer drivers with a generic one 2016-10-17 22:43:37 +02:00
cbmem_console.c Turn CBMEM console into a ring buffer that can persist across reboots 2017-04-20 00:29:07 +02:00
hid.c Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
keyboard.c libpayload/libc/console: Flush input driver buffer on init 2017-04-19 19:19:56 +02:00
nvram.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
options.c libpayload/options: Fix out of array read. 2014-01-19 11:51:23 +01:00
pci.c Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
speaker.c