Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "usb: gadget: uvc: cleanup request when not in correct state"

This reverts commit 52a39f2cf62bb5430ad1f54cd522dbfdab1d71ba.

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>

-6
-6
drivers/usb/gadget/function/uvc_video.c
··· 256 256 struct uvc_device *uvc = video->uvc; 257 257 unsigned long flags; 258 258 259 - if (uvc->state == UVC_STATE_CONNECTED) { 260 - usb_ep_free_request(video->ep, ureq->req); 261 - ureq->req = NULL; 262 - return; 263 - } 264 - 265 259 switch (req->status) { 266 260 case 0: 267 261 break;