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

Commit 20e24d56 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "RFCOMM: Refuse connection if max RFCOMM ports are used" am: 13e5ff68

Change-Id: I287981bc7832ec2f343a61d969b622a4d7e17c6c
parents ff90f225 13e5ff68
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1622,6 +1622,9 @@ static tBTA_JV_PCB* bta_jv_add_rfc_port(tBTA_JV_RFC_CB* p_cb,
        p_pcb->handle = BTA_JV_RFC_H_S_TO_HDL(p_cb->handle, si);
        VLOG(2) << __func__ << ": p_pcb->handle=" << loghex(p_pcb->handle)
                << ", curr_sess=" << p_cb->curr_sess;
      } else {
        LOG(ERROR) << __func__ << ": RFCOMM_CreateConnection failed";
        return NULL;
      }
    } else {
      LOG(ERROR) << __func__ << ": cannot create new rfc listen port";