mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
msm: ipa: fix the use-after-free on qmi framework in ssr scenario
IPA drvier free the qmi server hdl without notify the qmi framework which is causing the use-after-free on QMI framework. The fix is to notify qmi framework before freeing the qmi handle. Change-Id: I1ec9d3efd29283fddd958561a538b2995222a53c Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
This commit is contained in:
parent
8e1f7e0c74
commit
3b8fe1bc8e
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue