mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
qcacmn: Free pdev configuration parameters during pdev detach
Free the memory allocated for the pdev configuration parameters during pdev detach so that there are no memory leaks Change-Id: I856cc6e6082197e98ad105053f1e4cffc2d25c53 CRs-Fixed: 2444000
This commit is contained in:
parent
5ea0a91a89
commit
23fbb8796b
2 changed files with 10 additions and 6 deletions
|
|
@ -365,7 +365,8 @@ struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_attach(void *psoc)
|
|||
|
||||
void wlan_cfg_pdev_detach(struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_ctx)
|
||||
{
|
||||
qdf_mem_free(wlan_cfg_ctx);
|
||||
if (wlan_cfg_ctx)
|
||||
qdf_mem_free(wlan_cfg_ctx);
|
||||
}
|
||||
|
||||
void wlan_cfg_set_num_contexts(struct wlan_cfg_dp_soc_ctxt *cfg, int num)
|
||||
|
|
|
|||
Loading…
Reference in a new issue