OSDN Git Service

Don't destroy BTIF Device Management state during shutdown
authorPavlin Radoslavov <pavlin@google.com>
Sat, 26 Mar 2016 01:55:30 +0000 (18:55 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Tue, 29 Mar 2016 00:41:52 +0000 (00:41 +0000)
commit29dca0643501998b14bb17c10402256417eea8aa
treecd1d213919e246e429fe8483af1a62e89b6b993d
parent20af7c3cc040e82124184ad869d840ad6fa1eacf
Don't destroy BTIF Device Management state during shutdown

Don't call btif_dm_cleanup() during stack shutdown stage,
because it will destroy/free internal state that might be used
later in the shutdown process.
Instead, btif_dm_cleanup() should happen during the stack
cleanup stage.

Also, added an unit test to capture the original issue.

Bug: 27856457
Change-Id: I8575537ad744cf4e6770046b779b6a53de93d66e
btif/src/btif_core.c
btif/src/btif_dm.c
test/suite/adapter/adapter_unittest.cpp