commit | 990c408db7f05b28dbcc799cb471778a5264c460 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Thu Aug 17 13:50:51 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Thu Aug 17 13:50:51 2017 -0700 |
tree | 72ded581b070a7ff7362c481aa63f9c75b3c6015 | |
parent | b2c423be2e88dbde6623ffe35238d6e4367afd98 [diff] |
adb: fix deadlock in kick_all_transports. Previously, kick_all_transports would deadlock if there were any inaccessible transports, because the transport kick function would call unregister_usb_transport, which attempts to take the already-held transport lock. Fix this by switching the transport lock over to a recursive mutex. Test: manual Change-Id: If61296ff4745e1699f3e216811c1383582627604