coreboot-kgpe-d16/payloads/libpayload/drivers/video
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
..
bitmap.h libpayload/libcbgfx: Add license headers 2015-10-27 16:49:10 +01:00
corebootfb.c libpayload: corebootfb: Add null check for framebuffer address 2017-06-27 02:16:10 +00:00
font8x16.c Document all of the external code we use in libpayload (trivial). 2008-08-11 20:34:50 +00:00
font8x16.h Various small consistency fixes (trivial): 2008-04-11 18:01:50 +00:00
geodelx.c libpayload: fix garbage on screen with Geode-LX VGA 2010-08-18 21:23:27 +00:00
graphics.c detachables: Add invert parameter 2017-05-25 18:23:56 +02:00
vga.c Add coreboot framebuffer support to libpayload 2010-03-25 18:56:26 +00:00
video.c video_printf: align text 2015-09-08 11:51:55 +00:00