linux-stable/drivers/usb/common
Greg Kroah-Hartman 2b8aa879e2 USB: ULPI: fix memory leak with using debugfs_lookup()
[ Upstream commit 8f4d25eba5 ]

When calling debugfs_lookup() the result must have dput() called on it,
otherwise the memory will leak over time.  To make things simpler, just
call debugfs_lookup_and_remove() instead which handles all of the logic
at once.

Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230202153235.2412790-2-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 13:50:42 +01:00
..
common.c usb: common: add helper to get role-switch-default-mode 2021-07-27 15:58:37 +02:00
common.h USB: move usb debugfs directory creation to the usb common core 2019-06-06 08:59:19 +02:00
debug.c usb: common: debug: Check non-standard control requests 2022-08-19 11:04:25 +02:00
Kconfig Partially revert "usb: Kconfig: using select for USB_COMMON dependency" 2021-10-05 13:45:16 +02:00
led.c USB: move usb debugfs directory creation to the usb common core 2019-06-06 08:59:19 +02:00
Makefile usb: common: add USB GPIO based connection detection driver 2019-09-03 19:01:04 +02:00
ulpi.c USB: ULPI: fix memory leak with using debugfs_lookup() 2023-03-11 13:50:42 +01:00
usb-conn-gpio.c usb: common: usb-conn-gpio: Simplify some error message 2022-08-18 21:16:02 +02:00
usb-otg-fsm.c usb: otg-fsm: Fix hrtimer list corruption 2021-07-27 16:31:31 +02:00