summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2014-11-16 17:48:31 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-12-04 17:38:41 +0300
commit21734b06430a935073ba11e3caa231cbf4fccb13 (patch)
tree060e71a1e918c407a2592e180d56d82a07935907 /drivers/media
parent8af0345926c8cdbbf80102aa3eab8a6519c23272 (diff)
downloadlinux-21734b06430a935073ba11e3caa231cbf4fccb13.tar.xz
[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')
-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 =