diff options
author | Hans de Goede <[email protected]> | 2020-08-09 16:19:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-08-18 12:08:51 +0200 |
commit | bed97b30968ba354035a020989df0623e52b5536 (patch) | |
tree | 3ab934c8f31b53d842f95b20679bc1865e7d93a3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 25794e3079d2a98547b6bf5764ef0240aa89b798 (diff) |
usb: typec: ucsi: Hold con->lock for the entire duration of ucsi_register_port()
Commit 081da1325d35 ("usb: typec: ucsi: displayport: Fix a potential race
during registration") made the ucsi code hold con->lock in
ucsi_register_displayport(). But we really don't want any interactions
with the connector to run before the port-registration process is fully
complete.
This commit moves the taking of con->lock from ucsi_register_displayport()
into ucsi_register_port() to achieve this.
Cc: [email protected]
Fixes: 081da1325d35 ("usb: typec: ucsi: displayport: Fix a potential race during registration")
Signed-off-by: Hans de Goede <[email protected]>
Acked-by: Heikki Krogerus <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions