Files
erofs-linux/drivers/usb/typec
Andrei Kuchynski fb0bf289f5 usb: typec: ucsi: Correct teardown ordering in ucsi_init() error path
The commit 7aa7d4bf9d ("usb: typec: ucsi: Fix race condition and
ordering in port unregistration") consolidated port teardown into the
ucsi_unregister_port() helper. However, it introduced an ordering problem
in the ucsi_init() error path.

Fix this by ensuring ucsi_unregister_port() is called before we unregister
their corresponding lockdep keys.

Cc: [email protected]
Fixes: 7aa7d4bf9d ("usb: typec: ucsi: Fix race condition and ordering in port unregistration")
Reported-by: "Borah, Chaitanya Kumar" <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Andrei Kuchynski <[email protected]>
Tested-by: Chaitanya Kumar Borah <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2026-07-23 10:38:19 +02:00
..
2026-06-01 17:39:51 +02:00
2026-01-23 17:18:01 +01:00
…
2026-01-23 17:18:01 +01:00
…
…
…
…