mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qcacld-3.0: Fix memory leak for IPA config allocation
Memory allocated in ipa_config_mem_alloc during wlan startup, but it is not freed in error handler path. Add ipa config free in error handler path. Change-Id: Icc86a9c65220f86897481107e8d81cfd87058fa2 CRs-Fixed: 2770385
This commit is contained in:
parent
3bbdcd04f2
commit
4cc1f3808b
1 changed files with 5 additions and 2 deletions
|
|
@ -3896,14 +3896,14 @@ int hdd_wlan_start_modules(struct hdd_context *hdd_ctx, bool reinit)
|
|||
hdd_err("Failed to Open legacy components; status: %d",
|
||||
status);
|
||||
ret = qdf_status_to_os_return(status);
|
||||
goto cds_free;
|
||||
goto ipa_component_free;
|
||||
}
|
||||
|
||||
ret = hdd_update_config(hdd_ctx);
|
||||
if (ret) {
|
||||
hdd_err("Failed to update configuration; errno: %d",
|
||||
ret);
|
||||
goto cds_free;
|
||||
goto ipa_component_free;
|
||||
}
|
||||
|
||||
status = wbuff_module_init();
|
||||
|
|
@ -4070,6 +4070,9 @@ psoc_close:
|
|||
wlan_global_lmac_if_close(hdd_ctx->psoc);
|
||||
cds_deinit_ini_config();
|
||||
|
||||
ipa_component_free:
|
||||
ucfg_ipa_component_config_free();
|
||||
|
||||
cds_free:
|
||||
ol_cds_free();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue