viafb: use display information in info not in var for panning
commit51bbfa9ef00ac1773d8bf121d2b5e1dcc85d3406
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 23 May 2011 21:39:58 +0000 (23 21:39 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:43:25 +0000 (11 09:43 -0800)
tree05d5cc16a5ef77363bafb926f2c082b69778dc34
parentf39f31b7c70cb84805b4dcae76a9161510c0b01c
viafb: use display information in info not in var for panning

commit d933990c57b498c092ceef591c7c5d69dbfe9f30 upstream.

As Laurent pointed out we must not use any information in the passed
var besides xoffset, yoffset and vmode as otherwise applications
might abuse it. Also use the aligned fix.line_length and not the
(possible) unaligned xres_virtual.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/via/viafbdev.c