Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6365a86 authored by Maggie_Lee's avatar Maggie_Lee Committed by Android Git Automerger
Browse files

am 608b7f7e: anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer

* commit '608b7f7e':
  anthias:17614185:Bluetooth: Getbuf returning invalid buffer pointer
parents b3f14888 608b7f7e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -402,7 +402,11 @@ 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;

        if(Q->cur_cnt < Q->total)
        {
// btla-specific ++