Skip to content

Commit

Permalink
udlfb: set line_length in dlfb_ops_set_par
Browse files Browse the repository at this point in the history
Set the variable "line_length" in the function dlfb_ops_set_par. Without
this, we get garbage if we select different videomode with fbset.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
  • Loading branch information
Mikulas Patocka authored and bzolnier committed Jul 25, 2018
1 parent 080fb52 commit 0ac319b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/fbdev/udlfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,7 @@ static int dlfb_ops_set_par(struct fb_info *info)
return result;

dlfb->current_mode = fvs;
info->fix.line_length = info->var.xres * (info->var.bits_per_pixel / 8);

if (dlfb->fb_count == 0) {

Expand Down

0 comments on commit 0ac319b

Please sign in to comment.