summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/drivers')
-rw-r--r--payloads/libpayload/drivers/video/video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/payloads/libpayload/drivers/video/video.c b/payloads/libpayload/drivers/video/video.c
index 71140f06ba..b932a63555 100644
--- a/payloads/libpayload/drivers/video/video.c
+++ b/payloads/libpayload/drivers/video/video.c
@@ -87,6 +87,9 @@ static void video_console_fixup_cursor(void)
cursory++;
}
+ if (console->rows <= 0)
+ return;
+
while(cursory >= console->rows) {
console->scroll_up();
cursory--;