diff options
author | Simon Wilson <simonwilson@google.com> | 2014-10-08 09:42:54 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2014-10-08 09:42:54 -0700 |
commit | ba2f6d995d058bc9e77d860d0d755e4ae6086deb (patch) | |
tree | c4ebd92d3e73bec3973bc506876b7c37fe1c021b | |
parent | 46bfe63d383fd077e521d69321e011aff824bd39 (diff) | |
download | bluedroid-ba2f6d995d058bc9e77d860d0d755e4ae6086deb.tar.gz |
Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer"
This reverts commit c1ccb0d9854cea4b2cd09bbd57fc1e1081eb96b9.
This change looks like a likely candidate for the culprit behind
a wide range of BT issues we're seeing across many devices.
Reverting this in order to test.
-rw-r--r-- | gki/common/gki_buffer.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gki/common/gki_buffer.c b/gki/common/gki_buffer.c index 3a96614..bcf6f06 100644 --- a/gki/common/gki_buffer.c +++ b/gki/common/gki_buffer.c @@ -402,11 +402,7 @@ void *GKI_getbuf (UINT16 size) if (((UINT16)1 << p_cb->pool_list[i]) & p_cb->pool_access_mask) continue; - if ( size <= p_cb->freeq[p_cb->pool_list[i]].size ) - Q = &p_cb->freeq[p_cb->pool_list[i]]; - else - continue; - + Q = &p_cb->freeq[p_cb->pool_list[i]]; if(Q->cur_cnt < Q->total) { // btla-specific ++ |