]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:56:36 +0000 (08:56 -0700)
commit1cb1976ecd018b02825e5a0fba06ffe95bdaedc6
tree188ae6313e230d6e2d3d946168d4d8bcde1a9346
parent06200304e7eb237015f433bd8884975e93aba1f5
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>
drivers/usb/gadget/uvc.h
drivers/usb/gadget/uvc_v4l2.c