commit | d0ccf885aa3d685d29ef61bf603272c19d674607 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Thu Aug 17 13:50:51 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Wed Sep 27 14:35:52 2017 -0700 |
tree | 5c35ec741be18b1a34036000668d180d1be12471 | |
parent | 7e3f2a9819eedf89e93550f2322942309ff4604c [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. Bug: 65419665 Test: manual Change-Id: If61296ff4745e1699f3e216811c1383582627604 (cherry picked from commit aaa82f763471953fd9bad59e2d0ad3240e6f08ff)