summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2014-11-16 15:48:31 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-12-04 15:38:41 +0100
commit21734b06430a935073ba11e3caa231cbf4fccb13 (patch)
tree060e71a1e918c407a2592e180d56d82a07935907 /drivers/media/i2c
parent[media] v4l: Add input and output capability flags for native size setting (diff)
downloadlinux-21734b06430a935073ba11e3caa231cbf4fccb13.tar.xz
linux-21734b06430a935073ba11e3caa231cbf4fccb13.zip
[media] smiapp: Set left and top to zero for crop bounds selection
The fields were previously uninitialised, leaving the returned values to where the user had set them. This was never the intention. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/smiapp/smiapp-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c
index 193af1c82d37..022ad44b5e6c 100644
--- a/drivers/media/i2c/smiapp/smiapp-core.c
+++ b/drivers/media/i2c/smiapp/smiapp-core.c
@@ -2191,6 +2191,7 @@ static int __smiapp_get_selection(struct v4l2_subdev *subdev,
switch (sel->target) {
case V4L2_SEL_TGT_CROP_BOUNDS:
if (ssd == sensor->pixel_array) {
+ sel->r.left = sel->r.top = 0;
sel->r.width =
sensor->limits[SMIAPP_LIMIT_X_ADDR_MAX] + 1;
sel->r.height =