OSDN Git Service

Fix FD leak caused by module wrapper thread
authorManu Viswanadhan <manuv@codeaurora.org>
Tue, 19 Apr 2016 09:28:40 +0000 (14:58 +0530)
committerPavlin Radoslavov <pavlin@google.com>
Sat, 23 Apr 2016 01:11:47 +0000 (18:11 -0700)
commit69b9e7c735c94ed9c4f3cad47be8f679bcad2e6b
treef43a26610ee87b519b538dd9c065eb32d3270157
parentff868423456f3b3ab40646df8dccfff0c099aea7
Fix FD leak caused by module wrapper thread

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 cleanup the module wrapper thread is
stopped but the resources are not freed, leading to FD leak.

Fix: Cleanup the module wrapper thread properly so that there
are no resource leaks.

Bug: 28312228
Change-Id: I4de2fba9c98a0e4ae73315759ec6bc8bf273948e
btcore/src/module.c