summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/uvc
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-04-08 17:59:48 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-07 21:30:37 +0200
commit57fb4a4831793de9e8dbdfc8dc5eb8796026d47e (patch)
treeada335b81058d8f346abc8f88fc4c044f8856cf6 /drivers/media/video/uvc
parent[media] v4l2-ctrls: Use v4l2_subscribed_event_ops (diff)
downloadlinux-57fb4a4831793de9e8dbdfc8dc5eb8796026d47e.tar.xz
linux-57fb4a4831793de9e8dbdfc8dc5eb8796026d47e.zip
[media] uvcvideo: Fix a "ignoring return value of ‘__clear_user’" warning
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc')
-rw-r--r--drivers/media/video/uvc/uvc_v4l2.c3
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,
__put_user(kp->menu_count, &up->menu_count))
return -EFAULT;
- __clear_user(up->reserved, sizeof(up->reserved));
+ if (__clear_user(up->reserved, sizeof(up->reserved)))
+ return -EFAULT;
if (kp->menu_count == 0)
return 0;