sst-linux/drivers/usb/typec
Andrei Kuchynski 7a735a8a46 usb: typec: ucsi: Fix NULL pointer access
commit b13abcb7ddd8d38de769486db5bd917537b32ab1 upstream.

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-04-07 10:05:46 +02:00
..
altmodes
mux
tcpm usb: typec: tcpci_rt1711h: Unmask alert interrupts to fix functionality 2025-03-13 12:53:21 +01:00
tipd
ucsi usb: typec: ucsi: Fix NULL pointer access 2025-04-07 10:05:46 +02:00
anx7411.c usb: typec: anx7411: fix OF node reference leaks in anx7411_typec_switch_probe() 2024-12-19 18:08:49 +01:00
bus.c
bus.h
class.c
class.h
hd3ss3220.c
Kconfig
Makefile
mux.c
mux.h
pd.c
pd.h
port-mapper.c
qcom-pmic-typec.c
retimer.c
retimer.h
rt1719.c
stusb160x.c
wusb3801.c