]> 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:29:51 +0000 (09:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 08:58:54 +0000 (10:58 +0200)
commitd6ef1c665ec5439f5d256753952e846d5d92ce91
tree7b181322da7a98786d1620296284fa8fe22d935f
parentaea48dce64c4aa4b46f0ccd6aa49acc80a6ad925
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