linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] usb: gadget: uvc: restart fixes
@ 2023-09-11 14:05 Michael Grzeschik
  2023-09-11 14:05 ` [PATCH v2 1/3] usb: gadget: uvc: stop pump thread on video disable Michael Grzeschik
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Michael Grzeschik @ 2023-09-11 14:05 UTC (permalink / raw)
  To: laurent.pinchart
  Cc: linux-usb, linux-media, dan.scally, gregkh, nicolas, kernel

This series is improving the stability of the usb uvc gadget driver. On
the unconditional event of a crash or intentional stop while using the
uvc v4l2 userspace device and streaming to the host, the setup was
sometimes running into use after free cases. We fix that.

Michael Grzeschik (3):
  usb: gadget: uvc: stop pump thread on video disable
  usb: gadget: uvc: cleanup request when not in correct state
  usb: gadget: uvc: rework pump worker to avoid while loop

 drivers/usb/gadget/function/uvc_video.c | 32 ++++++++++++++++++++-----
 1 file changed, 26 insertions(+), 6 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-10-05  8:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-11 14:05 [PATCH v2 0/3] usb: gadget: uvc: restart fixes Michael Grzeschik
2023-09-11 14:05 ` [PATCH v2 1/3] usb: gadget: uvc: stop pump thread on video disable Michael Grzeschik
2023-10-05  8:17   ` Laurent Pinchart
2023-10-05  8:40     ` Greg KH
2023-10-05  8:48       ` Laurent Pinchart
2023-10-05  8:58         ` Greg KH
2023-09-11 14:05 ` [PATCH v2 2/3] usb: gadget: uvc: cleanup request when not in correct state Michael Grzeschik
2023-10-05  8:21   ` Laurent Pinchart
2023-09-11 14:05 ` [PATCH v2 3/3] usb: gadget: uvc: rework pump worker to avoid while loop Michael Grzeschik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).