diff options
author | Josh Gao <jmgao@google.com> | 2017-08-17 13:50:51 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2017-09-27 14:35:52 -0700 |
commit | 39103b95c8a3d666974f929647c28d1d9f51b143 (patch) | |
tree | faad3046e04f11ea0a466d1b9cbb6dc3fa52a21d /trusty/coverage/coverage_test.cpp | |
parent | 5dec8e22c3ecda25ac63baa20d2c23c7a659662c (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 1db71afe97c0c73167bc5d1fffea574b65bfa32c)
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions