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:Luciano Coelho <luciano.coelho@intel.com> Fixes: 5e9c1662 ("usb: typec: ucsi: rework command execution functions") References: #11849 Signed-off-by:
Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by:
Luca Coelho <luciano.coelho@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240807062729.3159701-1-chaitanya.kumar.borah@intel.com Signed-off-by:
Jani Nikula <jani.nikula@intel.com>
Loading