]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
phy: ti: omap-usb2: fix device leak at unbind
authorJohan Hovold <johan@kernel.org>
Wed, 17 Sep 2025 13:55:02 +0000 (09:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2025 11:35:43 +0000 (13:35 +0200)
commit95680a9fc798a3196a20b993e3e980ebf232fd65
tree30239803053406182c59c0dfe0fd9407b1b994fa
parent31e4d152fcb42a11453e725d53cb3225fcb1cace
phy: ti: omap-usb2: fix device leak at unbind

[ Upstream commit 64961557efa1b98f375c0579779e7eeda1a02c42 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/ti/phy-omap-usb2.c