mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
qcacld-3.0: Free psoc when hdd_wlan_startup fails
A psoc object is being created in hdd_wlan_startup, but not freed in case of an error. Free any allocated psoc object in hdd_wlan_startup as part of the existing error handling. Change-Id: I6292188c4b92198ea157f6e2f1519b89fc991ad5 CRs-Fixed: 2059166
This commit is contained in:
parent
1c40f07442
commit
209124664c
1 changed files with 5 additions and 1 deletions
|
|
@ -9324,7 +9324,7 @@ int hdd_wlan_startup(struct device *dev)
|
|||
|
||||
ret = hdd_init_netlink_services(hdd_ctx);
|
||||
if (ret)
|
||||
goto err_hdd_free_context;
|
||||
goto err_hdd_free_psoc;
|
||||
|
||||
hdd_request_manager_init();
|
||||
hdd_green_ap_init(hdd_ctx);
|
||||
|
|
@ -9479,6 +9479,10 @@ err_exit_nl_srv:
|
|||
hdd_exit_netlink_services(hdd_ctx);
|
||||
|
||||
cds_deinit_ini_config();
|
||||
|
||||
err_hdd_free_psoc:
|
||||
hdd_objmgr_release_and_destroy_psoc(hdd_ctx);
|
||||
|
||||
err_hdd_free_context:
|
||||
if (cds_is_fw_down())
|
||||
hdd_err("Not setting the complete event as fw is down");
|
||||
|
|
|
|||
Loading…
Reference in a new issue