aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/fbmem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index 3c65b0d67617..756efeb91abc 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -510,6 +510,10 @@ static int fb_prepare_extra_logos(struct fb_info *info, unsigned int height,
510 fb_logo_ex_num = 0; 510 fb_logo_ex_num = 0;
511 511
512 for (i = 0; i < fb_logo_ex_num; i++) { 512 for (i = 0; i < fb_logo_ex_num; i++) {
513 if (fb_logo_ex[i].logo->type != fb_logo.logo->type) {
514 fb_logo_ex[i].logo = NULL;
515 continue;
516 }
513 height += fb_logo_ex[i].logo->height; 517 height += fb_logo_ex[i].logo->height;
514 if (height > yres) { 518 if (height > yres) {
515 height -= fb_logo_ex[i].logo->height; 519 height -= fb_logo_ex[i].logo->height;