Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349037
b: refs/heads/master
c: 9bf4230
h: refs/heads/master
i:
  349035: a901cd3
v: v3
  • Loading branch information
Laurent Pinchart authored and Mauro Carvalho Chehab committed Jan 11, 2013
1 parent a2223e3 commit 03433e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 734d1ece37fbf3d2ddfc71bc6c69e0fe35f02542
refs/heads/master: 9bf42300e672fb1b5587d1da5486f8b144e74598
4 changes: 3 additions & 1 deletion trunk/drivers/media/usb/uvc/uvc_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1431,8 +1431,10 @@ int uvc_ctrl_set(struct uvc_video_chain *chain,
int ret;

ctrl = uvc_find_control(chain, xctrl->id, &mapping);
if (ctrl == NULL || (ctrl->info.flags & UVC_CTRL_FLAG_SET_CUR) == 0)
if (ctrl == NULL)
return -EINVAL;
if (!(ctrl->info.flags & UVC_CTRL_FLAG_SET_CUR))
return -EACCES;

/* Clamp out of range values. */
switch (mapping->v4l2_type) {
Expand Down

0 comments on commit 03433e5

Please sign in to comment.