mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 12:24:07 -05:00
qcacld-3.0: Free gpLimRemainOnChanReq in lim_cleanup
In case remain on channel response is pending when wlan unloads, this memory will leak. Free gpLimRemainOnChanReq memory when lim_cleanup is called to avoid leak. Change-Id: Ibf47bbc4b7eb5ce9509998cd40d0c3ce54e4da62 CRs-Fixed: 2051164
This commit is contained in:
parent
746a90b284
commit
4b1aab96e1
1 changed files with 2 additions and 1 deletions
|
|
@ -618,7 +618,8 @@ void lim_cleanup(tpAniSirGlobal pMac)
|
|||
qdf_mutex_release(&pMac->lim.lim_frame_register_lock);
|
||||
qdf_list_destroy(&pMac->lim.gLimMgmtFrameRegistratinQueue);
|
||||
qdf_mutex_destroy(&pMac->lim.lim_frame_register_lock);
|
||||
|
||||
qdf_mem_free(pMac->lim.gpLimRemainOnChanReq);
|
||||
pMac->lim.gpLimRemainOnChanReq = NULL;
|
||||
lim_cleanup_mlm(pMac);
|
||||
|
||||
/* free up preAuth table */
|
||||
|
|
|
|||
Loading…
Reference in a new issue