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 Merged-In: Ifbaa4098edba442274ffde183960ef53169988e7
Loading
Please register or sign in to comment