From: Mikulas Patocka Date: Wed, 25 Jul 2018 13:41:56 +0000 (+0200) Subject: udlfb: set line_length in dlfb_ops_set_par X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0ac319b7af1bb24a33365d0ec82a2f56a59b2a78;p=linux.git 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: Mikulas Patocka Cc: stable@vger.kernel.org Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c index 4ab903456129b..862e8027acf60 100644 --- a/drivers/video/fbdev/udlfb.c +++ b/drivers/video/fbdev/udlfb.c @@ -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) {