Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261366
b: refs/heads/master
c: 7ebbc39
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 6abcf9d commit a589c43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37cd3b73683f15f1b6313d0de476726aa0942a75
refs/heads/master: 7ebbc39fa0b469243b985e5e26755f1e6184213f
6 changes: 3 additions & 3 deletions trunk/drivers/media/video/v4l2-ctrls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1826,9 +1826,6 @@ static int set_ctrl(struct v4l2_ctrl *ctrl, s32 *val)
int ret;
int i;

if (ctrl->flags & V4L2_CTRL_FLAG_READ_ONLY)
return -EACCES;

v4l2_ctrl_lock(ctrl);

/* Reset the 'is_new' flags of the cluster */
Expand All @@ -1853,6 +1850,9 @@ int v4l2_s_ctrl(struct v4l2_ctrl_handler *hdl, struct v4l2_control *control)
if (ctrl == NULL || !type_is_int(ctrl))
return -EINVAL;

if (ctrl->flags & V4L2_CTRL_FLAG_READ_ONLY)
return -EACCES;

return set_ctrl(ctrl, &control->value);
}
EXPORT_SYMBOL(v4l2_s_ctrl);
Expand Down

0 comments on commit a589c43

Please sign in to comment.