diff options
Diffstat (limited to 'drivers/media/video/uvc/uvc_v4l2.c')
-rw-r--r-- | drivers/media/video/uvc/uvc_v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c index a3322ed81e39..759bef8897e9 100644 --- a/drivers/media/video/uvc/uvc_v4l2.c +++ b/drivers/media/video/uvc/uvc_v4l2.c | |||
@@ -694,7 +694,7 @@ static long uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
694 | break; | 694 | break; |
695 | } | 695 | } |
696 | pin = iterm->id; | 696 | pin = iterm->id; |
697 | } else if (pin < selector->bNrInPins) { | 697 | } else if (index < selector->bNrInPins) { |
698 | pin = selector->baSourceID[index]; | 698 | pin = selector->baSourceID[index]; |
699 | list_for_each_entry(iterm, &chain->entities, chain) { | 699 | list_for_each_entry(iterm, &chain->entities, chain) { |
700 | if (!UVC_ENTITY_IS_ITERM(iterm)) | 700 | if (!UVC_ENTITY_IS_ITERM(iterm)) |