Browse Source

Merge "msm: ipa: fix the use-after-free on qmi framework in ssr scenario"

qctecmdr 4 years ago
parent
commit
848a5ab65b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/platform/msm/ipa/ipa_v3/ipa_qmi_service.c

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

@@ -1507,6 +1507,7 @@ static void ipa3_q6_clnt_svc_arrive(struct work_struct *work)
 		IPAWANERR(
 		"ipa3_qmi_init_modem_send_sync_msg failed due to SSR!\n");
 		/* Cleanup when ipa3_wwan_remove is called */
+		qmi_handle_release(ipa_q6_clnt);
 		vfree(ipa_q6_clnt);
 		ipa_q6_clnt = NULL;
 		return;