OSDN Git Service

BLE: Continue after list_remove in btm_consolidate_dev
authorHemant Gupta <hemantg@codeauora.org>
Thu, 9 Nov 2017 06:59:10 +0000 (12:29 +0530)
committerHansong Zhang <hsz@google.com>
Tue, 14 Nov 2017 23:16:09 +0000 (23:16 +0000)
commitf64e88ffb01ba51f2f100c333d7416de3a90464c
tree37712ba234eabbf7eb2c33f592a76e24bc50892d
parentf5d1aea3ea277d4d2ce30025f8e467f7c985d04f
BLE: Continue after list_remove in btm_consolidate_dev

Since p_dev_rec gets freed in list_remove, it should not be
accessed again in the same iteration.

Test: Code Review

Bug: 69237299
Change-Id: If7b12cb02fed8f03079c77cf9ea7e773c80cb340
stack/btm/btm_dev.cc