diff options
Diffstat (limited to 'drivers/media/video/pwc/pwc-v4l.c')
-rw-r--r-- | drivers/media/video/pwc/pwc-v4l.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pwc/pwc-v4l.c b/drivers/media/video/pwc/pwc-v4l.c index bc0a464295c5..2876ce084510 100644 --- a/drivers/media/video/pwc/pwc-v4l.c +++ b/drivers/media/video/pwc/pwc-v4l.c | |||
@@ -1107,7 +1107,7 @@ long pwc_video_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
1107 | return -EINVAL; | 1107 | return -EINVAL; |
1108 | if (buf->memory != V4L2_MEMORY_MMAP) | 1108 | if (buf->memory != V4L2_MEMORY_MMAP) |
1109 | return -EINVAL; | 1109 | return -EINVAL; |
1110 | if (buf->index < 0 || buf->index >= pwc_mbufs) | 1110 | if (buf->index >= pwc_mbufs) |
1111 | return -EINVAL; | 1111 | return -EINVAL; |
1112 | 1112 | ||
1113 | buf->flags |= V4L2_BUF_FLAG_QUEUED; | 1113 | buf->flags |= V4L2_BUF_FLAG_QUEUED; |