diff options
-rw-r--r-- | miscutils/fbsplash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/fbsplash.c b/miscutils/fbsplash.c index 77033c258..9557c41db 100644 --- a/miscutils/fbsplash.c +++ b/miscutils/fbsplash.c | |||
@@ -150,7 +150,7 @@ static void fb_open(const char *strfb_device) | |||
150 | 150 | ||
151 | // map the device in memory | 151 | // map the device in memory |
152 | G.addr = mmap(NULL, | 152 | G.addr = mmap(NULL, |
153 | G.scr_var.yres * G.scr_fix.line_length, | 153 | (G.scr_var.yres_virtual ?: G.scr_var.yres) * G.scr_fix.line_length, |
154 | PROT_WRITE, MAP_SHARED, fbfd, 0); | 154 | PROT_WRITE, MAP_SHARED, fbfd, 0); |
155 | if (G.addr == MAP_FAILED) | 155 | if (G.addr == MAP_FAILED) |
156 | bb_perror_msg_and_die("mmap"); | 156 | bb_perror_msg_and_die("mmap"); |