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

Commit 2889739d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa3: Protect access to ipa3_qmi_ctx variable by lock"

parents b8e8c7ae 4944666a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1253,10 +1253,13 @@ void ipa3_qmi_service_exit(void)
	}

	/* clean the QMI msg cache */
	mutex_lock(&ipa3_qmi_lock);
	if (ipa3_qmi_ctx != NULL) {
		vfree(ipa3_qmi_ctx);
		ipa3_qmi_ctx = NULL;
	}
	mutex_unlock(&ipa3_qmi_lock);

	ipa3_svc_handle = 0;
	ipa3_qmi_modem_init_fin = false;
	ipa3_qmi_indication_fin = false;