OSDN Git Service

Check startup_future before using it
authorBailey Forrest <bcf@google.com>
Thu, 2 Aug 2018 22:10:46 +0000 (15:10 -0700)
committerBailey Forrest <bcf@google.com>
Tue, 14 Aug 2018 21:56:28 +0000 (14:56 -0700)
commit9a8aac7e638a80437f9ca5d53c274813723e381b
tree6d22c1a5936f611ea9e1b4ed13daf4f2683a2643
parent6d110527c8363f244530ee8e10f85c325f2bcb0e
Check startup_future before using it

event_finish_startup and startup_timer_expired can race, leading one of
them to try to use startup_future when it is NULL.

Check startup_future still exists before using it.

Bug: 112114060
Test: Use Bluetooth
Change-Id: I018d45f070b3f931c1114abf0471b6ea1d524f2a
hci/src/hci_layer.cc