Skip to content

USB: fix device leaks at unbind

Johan Hovold linux-usb lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5usb: dwc3: imx8mp: fix device leak at unbinddrivers/usb/dwc3/dwc3-imx8mp.c+6 -10 replies
2/5usb: dwc3: meson-g12a: fix device leaks at unbinddrivers/usb/dwc3/dwc3-meson-g12a.c+3 -01 reply
3/5usb: gadget: udc: renesas_usb3: fix device leak at unbinddrivers/usb/gadget/udc/renesas_usb3.c+1 -00 replies
4/5usb: musb: omap2430: fix device leak at unbinddrivers/usb/musb/omap2430.c+9 -51 reply
5/5usb: musb: omap2430: clean up probe error handlingdrivers/usb/musb/omap2430.c+10 -131 reply

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchMartin BlumenstinglKevin Hilman
1/5
2/5R-b
3/5
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] USB: fix device leaks at unbind

This series fixes a number of device leaks after failure to drop the reference taken by of_find_device_by_node().

Included is also a related clean up of the omap driver.

Note that these have only been compile tested.

Johan

Johan Hovold (5):
usb: dwc3: imx8mp: fix device leak at unbind
usb: dwc3: meson-g12a: fix device leaks at unbind
usb: gadget: udc: renesas_usb3: fix device leak at unbind
usb: musb: omap2430: fix device leak at unbind
usb: musb: omap2430: clean up probe error handling

 drivers/usb/dwc3/dwc3-imx8mp.c        |  7 ++++-
 drivers/usb/dwc3/dwc3-meson-g12a.c    |  3 +++
 drivers/usb/gadget/udc/renesas_usb3.c |  1 +
 drivers/usb/musb/omap2430.c           | 37 ++++++++++++++-------------
 4 files changed, 29 insertions(+), 19 deletions(-)
Signature · 1 line
2.49.1