aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/s3c-fb.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-06-14 05:24:57 -0400
committerPaul Mundt <lethal@linux-sh.org>2011-06-15 02:04:19 -0400
commit3362903cad196d2a8ba340c0c3c5889db3b65c68 (patch)
tree37470b0d5259da64bdbde7d947170b0faf6b723f /drivers/video/s3c-fb.c
parentaa7984cf51875bbb867485a72817bca5162fe80d (diff)
s3c-fb: 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> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/s3c-fb.c')
-rw-r--r--drivers/video/s3c-fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 0352afa49a3..42b557c44e8 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -884,7 +884,7 @@ static int s3c_fb_pan_display(struct fb_var_screeninfo *var,
884 } 884 }
885 } 885 }
886 /* Offset in bytes to the end of the displayed area */ 886 /* Offset in bytes to the end of the displayed area */
887 end_boff = start_boff + var->yres * info->fix.line_length; 887 end_boff = start_boff + info->var.yres * info->fix.line_length;
888 888
889 /* Temporarily turn off per-vsync update from shadow registers until 889 /* Temporarily turn off per-vsync update from shadow registers until
890 * both start and end addresses are updated to prevent corruption */ 890 * both start and end addresses are updated to prevent corruption */