OSDN Git Service

Add missing clean_up step for the OSI module.
authorPavlin Radoslavov <pavlin@google.com>
Sat, 23 May 2015 02:47:49 +0000 (19:47 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 10 Jun 2015 21:02:34 +0000 (21:02 +0000)
commit7dac79e3614a7956637b7dd294cf9f38afcf09f4
treed199c4183433ee28d3b495289aababd8a9a93b74
parent527c9fe7f49c171713e227610ed8829eaa2dac05
Add missing clean_up step for the OSI module.

Now the OSI module's shut_down processing is split into "shut_down"
and "clean_up".

Previously, there was an ordering issue manipulating some of the
internal state during graceful shutdown/cleanup. Some of the modules
had two steps: shut_down, followed by clean_up, while other had only
shut_down step. This triggered the following assert in file alarm.c

    alarm_cancel: assertion "alarms != NULL" failed

Bug: 21406940
Change-Id: Iab1f033a69cbff646a6b0f346760ae82f8b00b8f
btcore/src/osi_module.c
btif/src/stack_manager.c
osi/include/alarm.h
osi/src/alarm.c
osi/test/AlarmTestHarness.cpp