summaryrefslogtreecommitdiff
path: root/src/drivers/xgi
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/xgi')
-rw-r--r--src/drivers/xgi/common/xgi_coreboot.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/drivers/xgi/common/xgi_coreboot.c b/src/drivers/xgi/common/xgi_coreboot.c
index e78c7bba9d..4db06f9b6d 100644
--- a/src/drivers/xgi/common/xgi_coreboot.c
+++ b/src/drivers/xgi/common/xgi_coreboot.c
@@ -426,9 +426,14 @@ int vbe_mode_info_valid(void)
return xgi_vbe_valid;
}
-void fill_lb_framebuffer(struct lb_framebuffer *framebuffer)
+int fill_lb_framebuffer(struct lb_framebuffer *framebuffer)
{
+ if (!vbe_mode_info_valid())
+ return -1;
+
*framebuffer = xgi_fb;
+
+ return 0;
}
struct xgifb_video_info *xgifb_video_info_ptr;