platform_system_core/adb/client
Josh Gao e48ecce671 Revert "adb: fix deadlock between transport_unref and usb_close."
This reverts commit 7e197ef833.

The mutex lock in transport_unref hides a race that seems otherwise
hard to fix. Specifically, there's no synchronization between acquiring
a transport and attaching it to an asocket*, leading to badness if the
transport is closed in between the two operations.

Fix the original problem the reverted patch addressed by manually
unlocking before calling unregister_usb_transport.

Bug: http://b/65419665
Test: python test_device.py
Change-Id: I0ed0044129b1671b2c5dd1b9fa2e70a9b4475dc5
2017-09-13 14:31:14 -07:00
..
main.cpp Give a clear error message if we can't start the server. 2017-06-20 14:21:41 -07:00
usb_dispatch.cpp adb: fix darwin build break. 2017-05-10 13:58:51 -07:00
usb_libusb.cpp Revert "adb: fix deadlock between transport_unref and usb_close." 2017-09-13 14:31:14 -07:00
usb_linux.cpp adb: fix darwin build break. 2017-05-10 13:58:51 -07:00
usb_osx.cpp adb: fix darwin build break. 2017-05-10 13:58:51 -07:00
usb_windows.cpp adb: move all cleanup to a function with defined ordering. 2017-05-09 14:32:47 -07:00