linux/drivers/usb/common
Johan Hovold 8af6812795 USB: ulpi: fix memory leak on registration failure
The allocated device name is never freed on early ULPI device
registration failures.

Fix this by initialising the device structure earlier and releasing the
initial reference whenever registration fails.

Fixes: 289fcff4bc ("usb: add bus type for USB ULPI")
Cc: stable <stable@kernel.org>
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260608145803.69360-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-06-25 15:11:27 +01:00
..
common.c usb: common: expand documentation for USB functions 2024-12-23 18:40:26 +01:00
common.h
debug.c
Kconfig
led.c
Makefile
ulpi.c USB: ulpi: fix memory leak on registration failure 2026-06-25 15:11:27 +01:00
usb-conn-gpio.c usb: common: usb-conn-gpio: use a unique name for usb connector device 2025-04-11 16:08:34 +02:00
usb-otg-fsm.c usb: common: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:47 +02:00