diff options
Diffstat (limited to 'drivers/media/video/uvc/uvc_v4l2.c')
-rw-r--r-- | drivers/media/video/uvc/uvc_v4l2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c index 485a89912cef..369ce06be035 100644 --- a/drivers/media/video/uvc/uvc_v4l2.c +++ b/drivers/media/video/uvc/uvc_v4l2.c | |||
@@ -1028,6 +1028,9 @@ static long uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
1028 | if (!capable(CAP_SYS_ADMIN)) | 1028 | if (!capable(CAP_SYS_ADMIN)) |
1029 | return -EPERM; | 1029 | return -EPERM; |
1030 | 1030 | ||
1031 | if (xinfo->size == 0) | ||
1032 | return -EINVAL; | ||
1033 | |||
1031 | info = kzalloc(sizeof *info, GFP_KERNEL); | 1034 | info = kzalloc(sizeof *info, GFP_KERNEL); |
1032 | if (info == NULL) | 1035 | if (info == NULL) |
1033 | return -ENOMEM; | 1036 | return -ENOMEM; |