]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb gadget: uvc: uvc_request_data::length field must be signed
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 24 Apr 2012 09:29:42 +0000 (11:29 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:43 +0000 (13:14 +0100)
commitcbc0551878f39fce33be5dd54ec6773664498386
tree907f9b53b4a02c4f62143f08accd6593d3bd4e32
parent30b770c334f69cf5bc8ce4e277084b6205ce34ef
usb gadget: uvc: uvc_request_data::length field must be signed

commit 6f6543f53f9ce136e01d7114bf6f0818ca54fb41 upstream.

The field is used to pass the UVC request data length, but can also be
used to signal an error when setting it to a negative value. Switch from
unsigned int to __s32.

Reported-by: Fernandez Gonzalo <gfernandez@copreci.es>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/gadget/uvc.h
drivers/usb/gadget/uvc_v4l2.c