projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
video: Check for valid FB pointer before clearing
[platform/kernel/u-boot.git]
/
drivers
/
video
/
cfb_console.c
diff --git
a/drivers/video/cfb_console.c
b/drivers/video/cfb_console.c
index
9388859
..
26f673a
100644
(file)
--- a/
drivers/video/cfb_console.c
+++ b/
drivers/video/cfb_console.c
@@
-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 */