drm/vmwgfx: correct fb_fix_screeninfo.line_length
authorChristopher Friedt <chrisfriedt@gmail.com>
Sat, 1 Feb 2014 15:01:15 +0000 (10:01 -0500)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 3 Apr 2014 07:34:06 +0000 (09:34 +0200)
commitaa6de142c901cd2d90ef08db30ae87da214bedcc
tree4a8c32e0eec89e8f64731a0f62e24280c90b7761
parent89dcbda65ca8ddcddee67d0f6734d82fde60398d
drm/vmwgfx: correct fb_fix_screeninfo.line_length

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.

Cc: stable@vger.kernel.org
Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c