staging: xgifb: use display information in info not in var for panning
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 14 Jun 2011 09:25:07 +0000 (09:25 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 15 Jun 2011 06:02:55 +0000 (15:02 +0900)
commitc42a3d543d2bbd2cb72c7179234358a4a33a583d
tree9a50a79e8b6e48f8e2bac3dd35ae4143e3a43639
parent0cf9cd026adeacc3fe5e88e4d3e7f8f3aeff6790
staging: xgifb: use display information in info not in var for panning

We must not use any information in the passed var besides xoffset,
yoffset and vmode as otherwise applications might abuse it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/staging/xgifb/XGI_main_26.c