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

Commit b5ee46ae authored by liuchao's avatar liuchao Committed by android-build-merger
Browse files

Fix out-of-bound array access in jv handle err log

am: 67997605

Change-Id: I2627ad5a4e864f520f340b9690ca3be2d4fd9681
parents bacb6b75 67997605
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -242,10 +242,8 @@ tBTA_JV_RFC_CB* bta_jv_rfc_port_to_cb(uint16_t port_handle) {
    handle &= ~BTA_JV_RFCOMM_MASK;
    if (handle) p_cb = &bta_jv_cb.rfc_cb[handle - 1];
  } else {
    APPL_TRACE_WARNING(
        "bta_jv_rfc_port_to_cb(port_handle:0x%x):jv handle:0x%x not"
        " FOUND",
        port_handle, bta_jv_cb.port_cb[port_handle - 1].handle);
    APPL_TRACE_WARNING("%s (port_handle:0x%x):jv handle not found", __func__,
                       port_handle);
  }
  return p_cb;
}