Commit ba2f6d99 authored by Simon Wilson's avatar Simon Wilson
Browse files

Revert "anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer"

This reverts commit c1ccb0d9.

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.
parent 46bfe63d
......@@ -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 ++
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment