]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: ulpi: Fix debugfs directory leak
authorSean Anderson <sean.anderson@seco.com>
Fri, 26 Jan 2024 22:38:00 +0000 (17:38 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:24:56 +0000 (09:24 +0100)
commit330d22aba17a4d30a56f007d0f51291d7e00862b
treea1274f64fa221f713ad29c725bc513a596feab14
parentd25f43a257943da4dec0a9b993cc86054a8b6d8f
usb: ulpi: Fix debugfs directory leak

commit 3caf2b2ad7334ef35f55b95f3e1b138c6f77b368 upstream.

The ULPI per-device debugfs root is named after the ulpi device's
parent, but ulpi_unregister_interface tries to remove a debugfs
directory named after the ulpi device itself. This results in the
directory sticking around and preventing subsequent (deferred) probes
from succeeding. Change the directory name to match the ulpi device.

Fixes: bd0a0a024f2a ("usb: ulpi: Add debugfs support")
Cc: stable@vger.kernel.org
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Link: https://lore.kernel.org/r/20240126223800.2864613-1-sean.anderson@seco.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/ulpi.c