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

Commit 827542e6 authored by jonerlin's avatar jonerlin Committed by android-build-merger
Browse files

Merge "Add protection to prevent null pointer dereference." am: cfb36495 am: d5843f01

am: 1c9e119e

Change-Id: I5ad4ba1e087059821c33c388c53f4ce8e30d8dc3
parents f826df4f 1c9e119e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -825,7 +825,8 @@ void btm_use_preferred_conn_params(const RawAddress& bda) {
  tBTM_SEC_DEV_REC* p_dev_rec = btm_find_or_alloc_dev(bda);

  /* If there are any preferred connection parameters, set them now */
  if ((p_dev_rec->conn_params.min_conn_int >= BTM_BLE_CONN_INT_MIN) &&
  if ((p_lcb != NULL) && (p_dev_rec != NULL) &&
      (p_dev_rec->conn_params.min_conn_int >= BTM_BLE_CONN_INT_MIN) &&
      (p_dev_rec->conn_params.min_conn_int <= BTM_BLE_CONN_INT_MAX) &&
      (p_dev_rec->conn_params.max_conn_int >= BTM_BLE_CONN_INT_MIN) &&
      (p_dev_rec->conn_params.max_conn_int <= BTM_BLE_CONN_INT_MAX) &&