drm/vmwgfx: correct fb_fix_screeninfo.line_length
authorChristopher Friedt <chrisfriedt@gmail.com>
Sat, 1 Feb 2014 15:01:15 +0000 (10:01 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 Apr 2014 15:23:25 +0000 (16:23 +0100)
commit8dd0cd27909f04ddb5ffb7da306643da45f42b60
tree41b5e076058eda2de13cffea6ebd589b06abb890
parent078a6830af35e480d2882ad08cede954bb84ad64
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: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c