USB: lpc32xx: fix error handling
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 7 repliesIn review
- v15 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- defer an ohci error label rename to the clean up patch
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | usb: gadget: lpc32xx_udc: fix clock imbalance in error pathdrivers/ | +10 | 1 reply | |
| 2/5 | usb: phy: isp1301: fix non-OF device reference imbalancedrivers/ | +6 | 2 replies | |
| 3/5 | usb: ohci-nxp: fix device leak on probe failuredrivers/ | +2 | 2 replies | |
| 4/5 | usb: gadget: lpc32xx_udc: clean up probe error labelsdrivers/ | +10 | 1 reply | |
| 5/5 | usb: ohci-nxp: clean up probe error labelsdrivers/ | +8 | 1 reply |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Alan Stern | Vladimir Zapolskiy |
|---|---|---|
| 1/5 | R-b | |
| 2/5 | R-b | |
| 3/5 | A-b | R-b |
| 4/5 | R-b | |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/5] USB: lpc32xx: fix error handling
A recent change fixing a device reference leak introduced a clock imbalance by reusing an error path so that the clock may be disabled before having been enabled.
The very same change could also lead to a use-after-free in case the driver is used with non-OF probing.
This series fixes the resulting mess as well as the related device leak in the NXP OHCI driver.
Included are also two related cleanups.
Johan
Changes in v2:
- defer an ohci error label rename to the clean up patch
Johan Hovold (5):
usb: gadget: lpc32xx_udc: fix clock imbalance in error path
usb: phy: isp1301: fix non-OF device reference imbalance
usb: ohci-nxp: fix device leak on probe failure
usb: gadget: lpc32xx_udc: clean up probe error labels
usb: ohci-nxp: clean up probe error labels
drivers/usb/gadget/udc/lpc32xx_udc.c | 41 ++++++++++++++-------------- drivers/usb/host/ohci-nxp.c | 18 ++++++------ drivers/usb/phy/phy-isp1301.c | 7 ++++- 3 files changed, 36 insertions(+), 30 deletions(-)
Signature · 1 line
2.51.2