diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2018-07-25 15:41:56 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-07-25 15:41:56 +0200 |
commit | 0ac319b7af1bb24a33365d0ec82a2f56a59b2a78 (patch) | |
tree | 7a4fee213e556639387c397bfb3cb46cbc788341 | |
parent | 080fb5240bdcabed7387b814139c3ea172d59fc5 (diff) | |
download | linux-0ac319b7af1bb24a33365d0ec82a2f56a59b2a78.tar.bz2 |
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 <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
-rw-r--r-- | drivers/video/fbdev/udlfb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c index 4ab903456129..862e8027acf6 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) { |