Skip to content

Commit

Permalink
[media] uvcvideo: Fix a "ignoring return value of ‘__clear_user’" war…
Browse files Browse the repository at this point in the history
…ning

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>
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed May 7, 2012
1 parent 3e36614 commit 57fb4a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/video/uvc/uvc_v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 57fb4a4

Please sign in to comment.