]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: ti: omap-usb2: fix device leak at unbind
authorJohan Hovold <johan@kernel.org>
Thu, 24 Jul 2025 13:12:05 +0000 (15:12 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 12 Aug 2025 16:00:00 +0000 (21:30 +0530)
commit64961557efa1b98f375c0579779e7eeda1a02c42
treeac3eba6900a93b658b8f100174e8fabfc98ef3c3
parentbca065733afd1e3a89a02f05ffe14e966cd5f78e
phy: ti: omap-usb2: fix device leak at unbind

Make sure to drop the reference to the control device taken by
of_find_device_by_node() during probe when the driver is unbound.

Fixes: 478b6c7436c2 ("usb: phy: omap-usb2: Don't use omap_get_control_dev()")
Cc: stable@vger.kernel.org # 3.13
Cc: Roger Quadros <rogerq@kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20250724131206.2211-3-johan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-omap-usb2.c