OSDN Git Service

Fix crashes on stack shutdown
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 22 Jun 2017 19:45:30 +0000 (12:45 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Fri, 23 Jun 2017 15:55:43 +0000 (15:55 +0000)
commit6884c4c68b1c43bb2febeb6b506362614808f726
tree6f6946216c2106a1b3196f39143904dd8226508b
parent7c58ca38433bc923c653c334b712fb05d25cab36
Fix crashes on stack shutdown

During stack shutdown, Unregister would sometimes get called after the
stack is already cleaned up, and the AdvertiseManager::Get would crash
on null check assertion. Ensure that stack is initialized before
Unregister call.

Bug: 37888261
Test: none
Change-Id: I7a4bbcd24ec7d24d21d04fe842985baaac899321
btif/src/btif_ble_advertiser.cc
stack/btm/btm_ble_multi_adv.cc
stack/include/ble_advertiser.h