OSDN Git Service

Fix a race condition inside command_timed_out() when printing log info
authorPavlin Radoslavov <pavlin@google.com>
Thu, 23 Mar 2017 19:24:57 +0000 (12:24 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Thu, 23 Mar 2017 19:25:42 +0000 (12:25 -0700)
commitb77d7129b2dff50e80dd910b02a11290011dbc62
treea96effb34971b60183b82352b144ff233ce58178
parent921f514bcfb0e79282f93b52843f701e167c3068
Fix a race condition inside command_timed_out() when printing log info

Release the lock after we don't need anymore access to the wait_entry
that was protected by the lock.
Note: We are keeping the lock right before restarting the Bluetooth
process, hence it doesn't matter we are holding it for a bit longer
than before.

Test: Code compilation
Change-Id: Id393a285fce9b9e28efcf0f55fcc32821c5a72b6
hci/src/hci_layer.cc