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

Commit c1115a8b authored by Chaitanya Pratapa's avatar Chaitanya Pratapa Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: Fix not sending QMI sync indication



If back to back SSR is triggered there is a possibility
of race condition where we try to send QMI sync indication
with a invalid handle. Make a change to validate the handle
before sending the indication.

Change-Id: If912b6676b562bd4a23c68512e9c80e6c0ac7a49
Signed-off-by: default avatarChaitanya Pratapa <cpratapa@codeaurora.org>
parent e964e609
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1583,6 +1583,11 @@ static void ipa3_q6_clnt_svc_arrive(struct work_struct *work)
		ind.master_driver_init_status.result =
			IPA_QMI_RESULT_SUCCESS_V01;

		if (unlikely(!ipa3_svc_handle)) {
			IPAWANERR("Invalid svc handle.Ignore sending ind.");
			return;
		}

		rc = qmi_send_indication(ipa3_svc_handle,
			&ipa3_qmi_ctx->client_sq,
			QMI_IPA_MASTER_DRIVER_INIT_COMPLETE_IND_V01,