qcacmn: Fix for IPA deinit path

While Unloading WIFI ko IPA deinit path is called thrice
and leading to double free issue which is causing kernal
panic, FIX is call the IPA deinit only once for each soc/pdev.

Change-Id: I3b5bd500afabe45cb8d1062e2c82a4b338f28544
CRs-Fixed: 3130590
This commit is contained in:
Devender Kumar
2022-03-01 09:56:15 +05:30
committed by Madan Koyyalamudi
parent 1cebff1228
commit 89fb12ba8a

View File

@@ -619,6 +619,12 @@ QDF_STATUS ipa_uc_ol_deinit(struct wlan_objmgr_pdev *pdev)
goto out;
}
if (!(ipa_obj->handle_initialized)) {
ipa_debug("IPA is already deinit for hdl:%d", ipa_obj->hdl);
status = QDF_STATUS_SUCCESS;
goto out;
}
status = wlan_ipa_uc_ol_deinit(ipa_obj);
ipa_obj_cleanup(ipa_obj);
if (!g_instances_added)