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

Commit a0c8f92c authored by Skylar Chang's avatar Skylar Chang
Browse files

msm: ipa: resolve potential qmi deadlock issue



Inside the QMI callback function, if we need to send
QMI indication, we should use "qmi_send_ind_from_cb"
instead of "qmi_send_ind" to avoid double mutex_lock
which causes the deadlock issue.

Change-Id: I31252fa2ff7b6aaf8bdeb918929ed4d1d83590e5
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent a9ada1a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ static int handle_indication_req(void *req_h, void *req)
				ipa_master_driver_init_complt_ind_msg_v01));
		ind.master_driver_init_status.result =
			IPA_QMI_RESULT_SUCCESS_V01;
		rc = qmi_send_ind(ipa_svc_handle, curr_conn,
		rc = qmi_send_ind_from_cb(ipa_svc_handle, curr_conn,
			&ipa_master_driver_complete_indication_desc,
			&ind,
			sizeof(ind));