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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {