linux/drivers/usb/typec
Andrei Kuchynski b13abcb7dd usb: typec: ucsi: Fix NULL pointer access
Resources should be released only after all threads that utilize them
have been destroyed.
This commit ensures that resources are not released prematurely by waiting
for the associated workqueue to complete before deallocating them.

Cc: stable <stable@kernel.org>
Fixes: b9aa02ca39 ("usb: typec: ucsi: Add polling mechanism for partner tasks like alt mode checking")
Signed-off-by: Andrei Kuchynski <akuchynski@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250305111739.1489003-2-akuchynski@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-03-06 16:55:46 +01:00
..
altmodes usb: typec: Print err when displayport fails to enter 2024-12-24 08:56:05 +01:00
mux usb: typec: intel_pmc_mux: Silence snprintf() output truncation warning 2024-12-23 18:40:19 +01:00
tcpm usb: typec: tcpci_rt1711h: Unmask alert interrupts to fix functionality 2025-02-19 15:19:11 +01:00
tipd USB/Thunderbolt update for 6.12-rc1 2024-09-26 09:45:36 -07:00
ucsi usb: typec: ucsi: Fix NULL pointer access 2025-03-06 16:55:46 +01:00
Kconfig
Makefile
anx7411.c usb: typec: anx7411: fix OF node reference leaks in anx7411_typec_switch_probe() 2024-12-04 16:25:54 +01:00
bus.c usb: typec: Only use SVID for matching altmodes 2024-12-24 08:56:05 +01:00
bus.h
class.c Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
class.h usb: typec: Add attribute file showing the USB Modes of the partner 2024-10-17 08:41:45 +02:00
hd3ss3220.c usb: typec: hd3ss3220: support configuring role preference based on fwnode property and typec_operation 2024-12-24 08:56:04 +01:00
mux.c usb: typec: constify struct class usage 2024-03-02 20:21:06 +01:00
mux.h
pd.c usb: typec: constify the struct device_type usage 2024-02-19 09:35:46 +01:00
pd.h
port-mapper.c
retimer.c usb: typec: constify struct class usage 2024-03-02 20:21:06 +01:00
retimer.h
rt1719.c power: supply: Change usb_types from an array into a bitmask 2024-09-03 23:20:28 +02:00
stusb160x.c usb: typec: stusb160x: Make use of i2c_get_match_data() 2024-10-04 15:12:15 +02:00
wusb3801.c