OSDN Git Service

GATT connection_manager: Fix logic to remove white list device
authorHansong Zhang <hsz@google.com>
Wed, 23 Jan 2019 22:03:24 +0000 (14:03 -0800)
committerHansong Zhang <hsz@google.com>
Wed, 23 Jan 2019 22:03:24 +0000 (14:03 -0800)
commit4d17a8e1eb53cfda9abd615eec67affdb0b67191
tree4cacfb5952deee00d16562eb5b68dce7891a21f6
parente6b80778a87b3ec2f93c31d1c836e2fab29308e5
GATT connection_manager: Fix logic to remove white list device

Device in bgconn_dev will be removed when no app is using it. Fix the
logic to prevent from use after free.

Bug: 123297334
Test: Manual
Change-Id: I35a0191ba48fabbcf28525388dfa63b93b20c96d
stack/gatt/connection_manager.cc