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

Commit 7b01cf63 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)
Browse files

[automerger] BLE: Don't access freed buffer in log message am: 53a89d92 am:...

[automerger] BLE: Don't access freed buffer in log message am: 53a89d92 am: 21eb7b17 am: 84774598 am: caeb84cd am: 0b104d17

Change-Id: Ia0a11c3f24a7b6e6a4f892c568513a3bfad987e4
parents ce46b2e7 0b104d17
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -336,8 +336,7 @@ tGATT_STATUS attp_send_msg_to_l2cap(tGATT_TCB *p_tcb, BT_HDR *p_toL2CAP)


    if (l2cap_ret == L2CAP_DW_FAILED)
    if (l2cap_ret == L2CAP_DW_FAILED)
    {
    {
        GATT_TRACE_ERROR("ATT   failed to pass msg:0x%0x to L2CAP",
        GATT_TRACE_ERROR("ATT   failed to pass msg to L2CAP");
            *((UINT8 *)(p_toL2CAP + 1) + p_toL2CAP->offset));
        return GATT_INTERNAL_ERROR;
        return GATT_INTERNAL_ERROR;
    }
    }
    else if (l2cap_ret == L2CAP_DW_CONGESTED)
    else if (l2cap_ret == L2CAP_DW_CONGESTED)