Skip to content

Commit 1110ebe

Browse files
committed
Merge tag 'fbdev-for-6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev
Pull fbdev fixes and cleanups from Helge Deller: "A crash fix in stifb which was missed to be included in the drm-misc tree, two checks to prevent wrong userspace input in sisfb and savagefb and two trivial printk cleanups: - stifb: Fix crash in stifb_blank() - savage/sis: Error out if pixclock equals zero - minor trivial cleanups" * tag 'fbdev-for-6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev: fbdev: stifb: Fix crash in stifb_blank() fbcon: Fix incorrect printed function name in fbcon_prepare_logo() fbdev: sis: Error out if pixclock equals zero fbdev: savage: Error out if pixclock equals zero fbdev: vt8500lcdfb: Remove unnecessary print function dev_err()
2 parents 615d300 + 4b08800 commit 1110ebe

5 files changed

Lines changed: 7 additions & 4 deletions

File tree

drivers/video/fbdev/core/fbcon.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,7 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,
631631

632632
if (logo_lines > vc->vc_bottom) {
633633
logo_shown = FBCON_LOGO_CANSHOW;
634-
printk(KERN_INFO
635-
"fbcon_init: disable boot-logo (boot-logo bigger than screen).\n");
634+
pr_info("fbcon: disable boot-logo (boot-logo bigger than screen).\n");
636635
} else {
637636
logo_shown = FBCON_LOGO_DRAW;
638637
vc->vc_top = logo_lines;

drivers/video/fbdev/savage/savagefb_driver.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,9 @@ static int savagefb_check_var(struct fb_var_screeninfo *var,
869869

870870
DBG("savagefb_check_var");
871871

872+
if (!var->pixclock)
873+
return -EINVAL;
874+
872875
var->transp.offset = 0;
873876
var->transp.length = 0;
874877
switch (var->bits_per_pixel) {

drivers/video/fbdev/sis/sis_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,8 @@ sisfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
14441444

14451445
vtotal = var->upper_margin + var->lower_margin + var->vsync_len;
14461446

1447+
if (!var->pixclock)
1448+
return -EINVAL;
14471449
pixclock = var->pixclock;
14481450

14491451
if((var->vmode & FB_VMODE_MASK) == FB_VMODE_NONINTERLACED) {

drivers/video/fbdev/stifb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ stifb_init_display(struct stifb_info *fb)
11581158
}
11591159
break;
11601160
}
1161-
stifb_blank(0, (struct fb_info *)fb); /* 0=enable screen */
1161+
stifb_blank(0, fb->info); /* 0=enable screen */
11621162

11631163
SETUP_FB(fb);
11641164
}

drivers/video/fbdev/vt8500lcdfb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ static int vt8500lcd_probe(struct platform_device *pdev)
374374

375375
irq = platform_get_irq(pdev, 0);
376376
if (irq < 0) {
377-
dev_err(&pdev->dev, "no IRQ defined\n");
378377
ret = -ENODEV;
379378
goto failed_free_palette;
380379
}

0 commit comments

Comments
 (0)