Skip to content

usb: gadget: uvc: stability fixes when stopping streams

Avichal Rakesh linux-usb lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: gadget: uvc: prevent use of disabled endpointdrivers/usb/gadget/function/f_uvc.c drivers/usb/gadget/function/f_uvc.h drivers/usb/gadget/function/uvc.h +2 more+27 -120 replies
2/2usb: gadget: uvc: prevent de-allocating inflight usb_requestsdrivers/usb/gadget/function/uvc.h drivers/usb/gadget/function/uvc_video.c+33 -14 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] usb: gadget: uvc: stability fixes when stopping streams

We have been seeing two main bugs when stopping stream:
1. attempting to queue usb_requests on a disabled usb endpoint, and
2. use-after-free problems for inflight requests

Avichal Rakesh (2):
usb: gadget: uvc: prevent use of disabled endpoint
usb: gadget: uvc: prevent de-allocating inflight usb_requests

 drivers/usb/gadget/function/f_uvc.c     | 11 ++++----
 drivers/usb/gadget/function/f_uvc.h     |  2 +-
 drivers/usb/gadget/function/uvc.h       |  5 +++-
 drivers/usb/gadget/function/uvc_v4l2.c  | 21 ++++++++++++---
 drivers/usb/gadget/function/uvc_video.c | 34 +++++++++++++++++++++++--
 5 files changed, 60 insertions(+), 13 deletions(-)

--
2.42.0.283.g2d96d420d3-goog