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

Commit 2cc01090 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 am: efaa46cb am: 26d60df5

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

Change-Id: I228551ab43882e32eb2d8f8d070637dccacfe48a
parents 1304286d 26d60df5
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line 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);
  tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev_by_handle(handle);
  uint8_t page_idx;
  uint8_t page_idx;


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


  p_acl_cb->num_read_pages = num_read_pages;
  p_acl_cb->num_read_pages = num_read_pages;