]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3: meson-g12a: fix device leaks at unbind
authorJohan Hovold <johan@kernel.org>
Thu, 24 Jul 2025 09:19:07 +0000 (11:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:26:05 +0000 (16:26 +0200)
commit80fe9589129b35a7e53567201f9426f1f538bdb8
treee2e76680e38ead6cdc5fbe02905d331aa5599a0d
parentf96815d5156c440433c8a2ab4f4dd7f6c11cb09e
usb: dwc3: meson-g12a: fix device leaks at unbind

commit 93b400f4951404d040197943a25d6fef9f8ccabb upstream.

Make sure to drop the references taken to the child devices by
of_find_device_by_node() during probe on driver unbind.

Fixes: c99993376f72 ("usb: dwc3: Add Amlogic G12A DWC3 glue")
Cc: stable@vger.kernel.org # 5.2
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20250724091910.21092-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-meson-g12a.c