diff options
author | 2024-05-07 16:43:16 +0300 | |
---|---|---|
committer | 2024-05-10 10:36:26 +0100 | |
commit | b791a67f68121d69108640d4a3e591d210ffe850 (patch) | |
tree | 1eaba8fe1450ecf2fe7b21ff0e2be411a9183c54 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | usb: typec: qcom-pmic-typec: split HPD bridge alloc and registration (diff) | |
download | wireguard-linux-b791a67f68121d69108640d4a3e591d210ffe850.tar.xz wireguard-linux-b791a67f68121d69108640d4a3e591d210ffe850.zip |
usb: typec: ucsi: displayport: Fix potential deadlock
The function ucsi_displayport_work() does not access the
connector, so it also must not acquire the connector lock.
This fixes a potential deadlock scenario:
ucsi_displayport_work() -> lock(&con->lock)
typec_altmode_vdm()
dp_altmode_vdm()
dp_altmode_work()
typec_altmode_enter()
ucsi_displayport_enter() -> lock(&con->lock)
Reported-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Fixes: af8622f6a585 ("usb: typec: ucsi: Support for DisplayPort alt mode")
Cc: stable@vger.kernel.org
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240507134316.161999-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions