mbox

[0/3] usb: gadget: uvc: restart fixes

Message ID 20230911002451.2860049-1-m.grzeschik@pengutronix.de (mailing list archive)
Headers

Message

Michael Grzeschik Sept. 11, 2023, 12:24 a.m. UTC
  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 | 31 ++++++++++++++++++++-----
 1 file changed, 25 insertions(+), 6 deletions(-)