usb: gadget: uvc: use capped length value
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Mar 2013 08:01:05 +0000 (11:01 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:18:25 +0000 (11:18 +0200)
commita5eaaa1f33e771fa1651a4a7652b8a5f9fa7f6c1
tree0551988c6eb48598b0b056411e77eaee6fce026a
parenta33bb2120851407b5703343596d5c2181cfc75b4
usb: gadget: uvc: use capped length value

"req->length" is a capped version of "data->length".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/uvc_v4l2.c