[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251218153519.19453-1-johan@kernel.org>
Date: Thu, 18 Dec 2025 16:35:14 +0100
From: Johan Hovold <johan@...nel.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Vladimir Zapolskiy <vz@...ia.com>,
Piotr Wojtaszczyk <piotr.wojtaszczyk@...esys.com>,
Alan Stern <stern@...land.harvard.edu>,
Ma Ke <make24@...as.ac.cn>,
linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org,
Johan Hovold <johan@...nel.org>
Subject: [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(-)
--
2.51.2
Powered by blists - more mailing lists