Message ID | 1351978902-23719-19-git-send-email-sjg@chromium.org |
---|---|
State | Accepted, archived |
Delegated to: | Simon Glass |
Headers | show |
diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c index c8d3e42..2b1f604 100644 --- a/drivers/video/cfb_console.c +++ b/drivers/video/cfb_console.c @@ -1976,6 +1976,7 @@ int video_get_screen_columns(void) void video_clear(void) { - memsetl(video_fb_address, - (VIDEO_VISIBLE_ROWS * VIDEO_LINE_LEN) / sizeof(int), 0); + if (video_fb_address) + memsetl(video_fb_address, + (VIDEO_VISIBLE_ROWS * VIDEO_LINE_LEN) / sizeof(int), 0); }