mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 18:05:21 +02:00
Revert "usb: gadget: uvc: cleanup request when not in correct state"
commitdddc00f255
upstream. This reverts commit52a39f2cf6
. Based on review comments, it was applied too soon and needs more work. Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: https://lore.kernel.org/r/20231005081716.GA13853@pendragon.ideasonboard.com Cc: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ce2f28a549
commit
8e1f64d446
|
@ -259,12 +259,6 @@ uvc_video_complete(struct usb_ep *ep, struct usb_request *req)
|
|||
struct uvc_device *uvc = video->uvc;
|
||||
unsigned long flags;
|
||||
|
||||
if (uvc->state == UVC_STATE_CONNECTED) {
|
||||
usb_ep_free_request(video->ep, ureq->req);
|
||||
ureq->req = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
switch (req->status) {
|
||||
case 0:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user