]> git.karo-electronics.de Git - karo-tx-linux.git/commit
viafb: use display information in info not in var for panning
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 23 May 2011 21:39:58 +0000 (21:39 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Fri, 27 May 2011 18:51:29 +0000 (18:51 +0000)
commitd933990c57b498c092ceef591c7c5d69dbfe9f30
treef00a2b7fd6e17152b6ed908f5aebd77c00698a05
parent8aa4d96fe3e4cda9a6469b22b3f017ed30996b10
viafb: use display information in info not in var for panning

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>
Cc: stable@kernel.org
drivers/video/via/viafbdev.c