projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e36614
)
[media] uvcvideo: Fix a "ignoring return value of ‘__clear_user’" warning
author
Hans de Goede
<hdegoede@redhat.com>
Sun, 8 Apr 2012 15:59:48 +0000
(12:59 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 7 May 2012 19:30:37 +0000
(16:30 -0300)
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>
drivers/media/video/uvc/uvc_v4l2.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/uvc/uvc_v4l2.c
b/drivers/media/video/uvc/uvc_v4l2.c
index
111bfff
..
4ef21e9
100644
(file)
--- 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;