This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] uvcvideo: Fix a "ignoring return value of ‘__clear_user’" 
warning
Author:  Hans de Goede <[email protected]>
Date:    Sun Apr 8 12:59:48 2012 -0300

Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/video/uvc/uvc_v4l2.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=57fb4a4831793de9e8dbdfc8dc5eb8796026d47e

diff --git a/drivers/media/video/uvc/uvc_v4l2.c 
b/drivers/media/video/uvc/uvc_v4l2.c
index 111bfff..4ef21e9 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;

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to