OSDN Git Service

bta_dm: Stop copying garbage
authorMartin Brabham <optedoblivion@google.com>
Mon, 1 May 2017 23:30:40 +0000 (16:30 -0700)
committerMartin Brabham <optedoblivion@google.com>
Sat, 6 May 2017 01:27:04 +0000 (01:27 +0000)
commit36d19de1aa2f2dcdbfe609fa8d1e542a3e7547fc
tree45f939ee1f4ec772afea5e52b7832da2df06d511
parent48294531bf6e5a5db94766ae52a83454154cb3a1
bta_dm: Stop copying garbage

After we reach 7 ACL connections we have 7 peer device records.
Once we reach this then we lose a connection and shrink the list we
copy garbage into the last peer device record.  This can cause the flag
remove_dev_pending to be set to something > 0 thus true which causes the
stack to remove the device and its bonding information on the next
acl change event.

ACL Connections can happen from any connection (pairing, SDP, etc...)

Bug: 36598959
Test: Manual
Change-Id: Ifbaa4098edba442274ffde183960ef53169988e7
bta/dm/bta_dm_act.cc