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

Commit efaa46cb authored by Hansong Zhang's avatar Hansong Zhang Committed by Automerger Merge Worker
Browse files

btm_process_remote_ext_features: return if no record am: c5c5ed3d

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1480392

Change-Id: Ie0bcf01c850557490f2cd49b0f3129328c8fc872
parents 12235e7f c5c5ed3d
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -874,10 +874,8 @@ void btm_process_remote_ext_features(tACL_CONN* p_acl_cb,
  tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev_by_handle(handle);
  uint8_t page_idx;

  /* Make sure we have the record to save remote features information */
  if (p_dev_rec == NULL) {
    /* Get a new device; might be doing dedicated bonding */
    p_dev_rec = btm_find_or_alloc_dev(p_acl_cb->remote_addr);
  if (p_dev_rec == nullptr) {
    return;
  }

  p_acl_cb->num_read_pages = num_read_pages;