Commit 0ac319b7 authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Bartlomiej Zolnierkiewicz

udlfb: set line_length in dlfb_ops_set_par

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: default avatarMikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent 080fb524
...@@ -1057,6 +1057,7 @@ static int dlfb_ops_set_par(struct fb_info *info) ...@@ -1057,6 +1057,7 @@ static int dlfb_ops_set_par(struct fb_info *info)
return result; return result;
dlfb->current_mode = fvs; dlfb->current_mode = fvs;
info->fix.line_length = info->var.xres * (info->var.bits_per_pixel / 8);
if (dlfb->fb_count == 0) { if (dlfb->fb_count == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment