commit | 06826eb0631c9700f4c99c6aaa3384d443683a3e | [log] [tgz] |
---|---|---|
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | Tue Apr 05 16:48:23 2022 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon May 09 09:04:58 2022 +0200 |
tree | 1a2db4774563a82a33aa864f572b7e1aa59fbec7 | |
parent | 7b510d4bb468f30419268832bc49cce55e6d9dbe [diff] |
usb: typec: ucsi: Fix reuse of completion structure commit e25adcca917d7e4cdc1dc6444d0692ffda7594bf upstream. The role swapping completion variable is reused, so it needs to be reinitialised every time. Otherwise it will be marked as done after the first time it's used and completing immediately. Link: https://lore.kernel.org/linux-usb/20220325203959.GA19752@jackp-linux.qualcomm.com/ Fixes: 6df475f804e6 ("usb: typec: ucsi: Start using struct typec_operations") Cc: stable@vger.kernel.org Reported-and-suggested-by: Jack Pham <quic_jackp@quicinc.com> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20220405134824.68067-2-heikki.krogerus@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>