OSDN Git Service

btif: Remove unused synchronization in event_cleanup_stack
authorManu Viswanadhan <manuv@codeaurora.org>
Fri, 14 Oct 2016 11:35:35 +0000 (17:05 +0530)
committerMyles Watson <mylesgw@google.com>
Wed, 14 Feb 2018 01:07:33 +0000 (01:07 +0000)
commit1cdebdacaa06e74cdda589615cc5234b94eeba75
tree5b138530b2f6e83d3da83d74128bd58c437e3b1f
parent65d24fb45191e3f18b32529dea3966244b26e4ce
btif: Remove unused synchronization in event_cleanup_stack

Use Case: Repeated BT ON/OFF

Failure: FD leak is observed with ON/OFF stress test
which eventually leads to crash due to unavailability
of FDs.

Steps:
BT ON/OFF

Root Cause: During stack cleanup an unused future
structure is created which is not freed, leading to FD
leak.

Fix: Remove the creation of the future structure

Test: BT ON/OFF
Fixes: 36019324
Change-Id: Id5945da87f00eb7ab77a5f217c95cc43f0136e06
btif/src/stack_manager.cc