提交 ae630574 编写于 作者: D Duncan Laurie 提交者: Simon Glass

video: Check for valid FB pointer before clearing

This command will start erasing at memory address zero
if there is not a valid framebuffer address that was found
during video_init().

This is a common case with Chrome OS devices in normal mode
when we do not execute the video option rom in coreboot.
Signed-off-by: NDuncan Laurie <dlaurie@chromium.org>
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 c9466317
......@@ -2293,6 +2293,8 @@ int video_get_screen_columns(void)
void video_clear(void)
{
if (!video_fb_address)
return;
#ifdef VIDEO_HW_RECTFILL
video_hw_rectfill(VIDEO_PIXEL_SIZE, /* bytes per pixel */
0, /* dest pos x */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册