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 04:52:14 +0000 (21:52 -0700)
commite766686f8ac76d5b262baf7101f31f3b50c4803d
tree646b77825f906f370e51b98a6dcb813b453436bf
parent8cfe6831bd3fc42a4b1d276e59d005d2be4f4f7d
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