usb: gadget: uvc: fix possible lockup in uvc gadget
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Fri, 8 Aug 2014 15:38:57 +0000 (17:38 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 19 Aug 2014 19:34:18 +0000 (14:34 -0500)
If the pending buffers in the queue could not be pushed to the udc
endpoint we have to cancel the uvc_queue. Otherwise the gadget will get
stuck on this error. This patch calls uvc_queue_cancel if usb_ep_queue
failed.

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found