drm/vmwgfx: correct fb_fix_screeninfo.line_length
authorChristopher Friedt <chrisfriedt@gmail.com>
Sat, 1 Feb 2014 15:01:15 +0000 (10:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 May 2014 20:20:31 +0000 (13:20 -0700)
commit558399b4fa247e9841056bcc0116be6755fcc1ba
tree9e2bb0b15d0baa294e04533663c1d8b073c1035e
parent9ad81155697312801f7b7ff60d1aa42bbbfd6ffb
drm/vmwgfx: correct fb_fix_screeninfo.line_length

commit aa6de142c901cd2d90ef08db30ae87da214bedcc upstream.

Previously, the vmwgfx_fb driver would allow users to call FBIOSET_VINFO, but it would not adjust
the FINFO properly, resulting in distorted screen rendering. The patch corrects that behaviour.

See https://bugs.gentoo.org/show_bug.cgi?id=494794 for examples.

Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c