diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/uvc/uvc_ctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvc_ctrl.c b/drivers/media/video/uvc/uvc_ctrl.c index 61576946329..f4e5ba26096 100644 --- a/drivers/media/video/uvc/uvc_ctrl.c +++ b/drivers/media/video/uvc/uvc_ctrl.c | |||
@@ -1006,7 +1006,7 @@ int uvc_ctrl_set(struct uvc_video_chain *chain, | |||
1006 | 1006 | ||
1007 | if (mapping->v4l2_type == V4L2_CTRL_TYPE_MENU) { | 1007 | if (mapping->v4l2_type == V4L2_CTRL_TYPE_MENU) { |
1008 | if (value < 0 || value >= mapping->menu_count) | 1008 | if (value < 0 || value >= mapping->menu_count) |
1009 | return -EINVAL; | 1009 | return -ERANGE; |
1010 | value = mapping->menu_info[value].value; | 1010 | value = mapping->menu_info[value].value; |
1011 | } | 1011 | } |
1012 | 1012 | ||