提交 0ac319b7 编写于 作者: M Mikulas Patocka 提交者: 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: NMikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
上级 080fb524
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册