OSDN Git Service

Bluetooth: Protect callbacks during shutdown
authorMyles Watson <mylesgw@google.com>
Thu, 9 Mar 2017 18:39:31 +0000 (10:39 -0800)
committerMyles Watson <mylesgw@google.com>
Thu, 9 Mar 2017 20:12:45 +0000 (12:12 -0800)
commit9ef1f7198234078095abe14c13e654504f8f2cca
tree5aa786adb554389360d3b3fed95ae864addae554
parent691a455b9f0990c97c71115bcd8353b283a00606
Bluetooth: Protect callbacks during shutdown

- Hold the mutex during callbacks
- Disable power mode before deleting hci_

Bug: 36084266
Test: Switch users repeatedly (toggles Bluetooth)
Change-Id: I7e4d405e9028c3363c112a8b09c03b8aea652b7a
bluetooth/1.0/default/async_fd_watcher.cc
bluetooth/1.0/default/vendor_interface.cc