commit | aaa82f763471953fd9bad59e2d0ad3240e6f08ff | [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 | 8d253d3c8e1154caa2cd8fcecf445b71bce7799c | |
parent | aa923c1d05696942f44012f57b070c118593fd78 [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