Skip to content
Snippets Groups Projects
Commit 9d38844b authored by Heikki Krogerus's avatar Heikki Krogerus Committed by Jani Nikula
Browse files

usb: typec: ucsi: Fix a potential deadlock in ucsi_send_command_common()

The function returns with the ppm_lock held if there's an
error or the PPM reports BUSY condition.

This is a core-for-ci patch for [1]

[1] https://lore.kernel.org/linux-usb/20240806112029.2984319-1-heikki.krogerus@linux.intel.com/



Reported-by: default avatarLuciano Coelho <luciano.coelho@intel.com>
Fixes: 5e9c1662 ("usb: typec: ucsi: rework command execution functions")
References: #11849


Signed-off-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240807062729.3159701-1-chaitanya.kumar.borah@intel.com


Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 09c02235
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment