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

Commit 6e0d9312 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

RFCOMM: Return NULL when out of listen ports

am: 0cc28ee7

Change-Id: I90a6a56d103d3e47e79d0e349efc517c20e96e20
parents e4ffdd07 0cc28ee7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1804,9 +1804,11 @@ static tBTA_JV_PCB* bta_jv_add_rfc_port(tBTA_JV_RFC_CB* p_cb,
            "bta_jv_add_rfc_port: p_pcb->handle:0x%x, curr_sess:%d",
            p_pcb->handle, p_cb->curr_sess);
      }
    } else
    } else {
      APPL_TRACE_ERROR(
          "bta_jv_add_rfc_port, cannot create new rfc listen port");
      return NULL;
    }
  }
  APPL_TRACE_DEBUG("bta_jv_add_rfc_port: sec id in use:%d, rfc_cb in use:%d",
                   get_sec_id_used(), get_rfc_cb_used());