OSDN Git Service

Ignore LCB entries that migth have been released while queued
authorPavlin Radoslavov <pavlin@google.com>
Tue, 1 Mar 2016 21:32:41 +0000 (13:32 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Tue, 8 Mar 2016 00:26:10 +0000 (16:26 -0800)
commit0c33fde894b566484b9956560e8b701b82fa04cc
tree3904e7231cfb37e3ba90aa037a44d525a6a0ed83
parent8cbd6d60819ab10d3a27d6dfa14755976e1b552a
Ignore LCB entries that migth have been released while queued

Function btm_send_pending_direct_conn() dequeues tL2C_LCB
entries from the conn_pending_q queue and calls the processing
function.
However, there is the possilility of a race condition
and releasing the entry by l2cu_release_lcb() before it is processed.
Now tL2C_LCB that are not in_use are ignored.

Bug: 27418154
Change-Id: I4b5fda605a60c8aebbf5587bb12dd74ac5d28f68
stack/btm/btm_ble_bgconn.c