diff options
author | Xu Yang <[email protected]> | 2023-03-17 14:15:16 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-03-23 18:17:32 +0100 |
commit | 451b15ed138ec15bffbebb58a00ebdd884c3e659 (patch) | |
tree | d9851e7a88ff31d1b962fbec2b319e00bda5a76c /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 3670de80678961eda7fa2220883fc77c16868951 (diff) |
usb: chipidea: core: fix possible concurrent when switch role
The user may call role_store() when driver is handling
ci_handle_id_switch() which is triggerred by otg event or power lost
event. Unfortunately, the controller may go into chaos in this case.
Fix this by protecting it with mutex lock.
Fixes: a932a8041ff9 ("usb: chipidea: core: add sysfs group")
cc: <[email protected]>
Acked-by: Peter Chen <[email protected]>
Signed-off-by: Xu Yang <[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/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions