usb: gadget: uvc: Fix error handling in uvc_queue_buffer()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 29 Apr 2013 20:18:01 +0000 (22:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:21:39 +0000 (17:21 -0700)
commit4c620592bad05c5bcf8e071cd208353ba4c3db75
tree3ce051bc38ab72d713165cdb386e567d7afcee40
parentbe8eba8d6628460ca512ec0c9ac16add66829671
usb: gadget: uvc: Fix error handling in uvc_queue_buffer()

commit ebe864a6cb8e087ede047fa1fa6b6d06fcb9a9e4 upstream.

The conversion to videobuf2 failed to check the return value of
vb2_qbuf(). Fix it.

Reported-by: Michael Grzeschik <mgr@pengutronix.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-By: Michael Grzeschik <mgr@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/uvc_queue.c