Skip to content

USB: dwc3: qcom: fix resource leaks on probe deferral

Johan Hovold linux-arm-msm linux-usb lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3USB: dwc3: qcom: fix resource leaks on probe deferraldrivers/usb/dwc3/dwc3-qcom.c+6 -31 reply
2/3USB: dwc3: qcom: fix software node leak on probe errorsdrivers/usb/dwc3/dwc3-qcom.c+8 -52 replies
3/3USB: dwc3: qcom: fix ACPI platform device leakdrivers/usb/dwc3/dwc3-qcom.c+30 -72 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndrew HalaneyShawn GuoHeikki Krogerus
1/3A-b
2/3A-b A-b
3/3A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] USB: dwc3: qcom: fix resource leaks on probe deferral

When reviewing the recently submitted series which reworks the dwc3 qcom glue implementation [1], I noticed that the driver's tear down handling is currently broken, something which can lead to memory leaks and potentially use-after-free issues on probe deferral and on driver unbind.

Let's get this sorted before reworking driver.

Note that the last patch has only been compile tested as I don't have access to a sdm845 device.

Johan

[1] https://lore.kernel.org/lkml/[email protected]/

Johan Hovold (3):
USB: dwc3: qcom: fix resource leaks on probe deferral
USB: dwc3: qcom: fix software node leak on probe errors
USB: dwc3: qcom: fix ACPI platform device leak

 drivers/usb/dwc3/dwc3-qcom.c | 57 +++++++++++++++++++++++++++---------
 1 file changed, 43 insertions(+), 14 deletions(-)
Signature · 1 line
2.41.0