summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-05-25 13:34:52 +0400
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-08-19 12:34:12 +0400
commitd8e7a74bf1f1c3d8235e1d939d3e1e96da94ed82 (patch)
treef9e5b38b40b2283a945e7a6be579e56cadd92605
parent01cba946e38eaa7071fd6fc756eedeecfcec3dd6 (diff)
downloadlinux-d8e7a74bf1f1c3d8235e1d939d3e1e96da94ed82.tar.xz
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>
-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 4aecf213c9be..fd9f20df912f 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -883,7 +883,7 @@ static int s3c_fb_pan_display(struct fb_var_screeninfo *var,
}
}
/* Offset in bytes to the end of the displayed area */
- end_boff = start_boff + var->yres * info->fix.line_length;
+ end_boff = start_boff + info->var.yres * info->fix.line_length;
/* Temporarily turn off per-vsync update from shadow registers until
* both start and end addresses are updated to prevent corruption */