Jelajahi Sumber

Merge "msm: ipa5: avoid NULL access in qmi_send_req_wait"

qctecmdr 3 tahun lalu
induk
melakukan
3c771ef777
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c

+ 2 - 0
drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c

@@ -473,6 +473,8 @@ static int ipa3_qmi_send_req_wait(struct qmi_handle *client_handle,
 	struct qmi_txn txn;
 	int ret;
 
+	if (!client_handle)
+		return -EINVAL;
 	ret = qmi_txn_init(client_handle, &txn, resp_desc->ei_array, resp);
 
 	if (ret < 0) {