diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/uvc/uvc_v4l2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c index 111bfff1640d..4ef21e9cb28c 100644 --- a/drivers/media/video/uvc/uvc_v4l2.c +++ b/drivers/media/video/uvc/uvc_v4l2.c | |||
@@ -1097,7 +1097,8 @@ static int uvc_v4l2_put_xu_mapping(const struct uvc_xu_control_mapping *kp, | |||
1097 | __put_user(kp->menu_count, &up->menu_count)) | 1097 | __put_user(kp->menu_count, &up->menu_count)) |
1098 | return -EFAULT; | 1098 | return -EFAULT; |
1099 | 1099 | ||
1100 | __clear_user(up->reserved, sizeof(up->reserved)); | 1100 | if (__clear_user(up->reserved, sizeof(up->reserved))) |
1101 | return -EFAULT; | ||
1101 | 1102 | ||
1102 | if (kp->menu_count == 0) | 1103 | if (kp->menu_count == 0) |
1103 | return 0; | 1104 | return 0; |