Skip to content

Commit

Permalink
Merge tag 'fbdev-for-6.8-rc2' of git://git.kernel.org/pub/scm/linux/k…
Browse files Browse the repository at this point in the history
…ernel/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()
  • Loading branch information
Linus Torvalds committed Jan 24, 2024
2 parents 615d300 + 4b08800 commit 1110ebe
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions drivers/video/fbdev/core/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,7 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,

if (logo_lines > vc->vc_bottom) {
logo_shown = FBCON_LOGO_CANSHOW;
printk(KERN_INFO
"fbcon_init: disable boot-logo (boot-logo bigger than screen).\n");
pr_info("fbcon: disable boot-logo (boot-logo bigger than screen).\n");
} else {
logo_shown = FBCON_LOGO_DRAW;
vc->vc_top = logo_lines;
Expand Down
3 changes: 3 additions & 0 deletions drivers/video/fbdev/savage/savagefb_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,9 @@ static int savagefb_check_var(struct fb_var_screeninfo *var,

DBG("savagefb_check_var");

if (!var->pixclock)
return -EINVAL;

var->transp.offset = 0;
var->transp.length = 0;
switch (var->bits_per_pixel) {
Expand Down
2 changes: 2 additions & 0 deletions drivers/video/fbdev/sis/sis_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,8 @@ sisfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)

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

if (!var->pixclock)
return -EINVAL;
pixclock = var->pixclock;

if((var->vmode & FB_VMODE_MASK) == FB_VMODE_NONINTERLACED) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/stifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ stifb_init_display(struct stifb_info *fb)
}
break;
}
stifb_blank(0, (struct fb_info *)fb); /* 0=enable screen */
stifb_blank(0, fb->info); /* 0=enable screen */

SETUP_FB(fb);
}
Expand Down
1 change: 0 additions & 1 deletion drivers/video/fbdev/vt8500lcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,6 @@ static int vt8500lcd_probe(struct platform_device *pdev)

irq = platform_get_irq(pdev, 0);
if (irq < 0) {
dev_err(&pdev->dev, "no IRQ defined\n");
ret = -ENODEV;
goto failed_free_palette;
}
Expand Down

0 comments on commit 1110ebe

Please sign in to comment.