mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
qcacmn: Fix memleak issue in DFS component
Problem: During wifi up/down, dfs_init_precac_list() is called to initialize the precac list without de-allocating the previously allocated memory. This leads to a memory leak. Solution: Deinit the allocated memory before initializing the precac list. Change-Id: I7eee38fbc3c50f37ac0c6670b5bfe4b5a1b2d9f6 CRs-Fixed: 2140042
This commit is contained in:
parent
e98fadcd8c
commit
e858515daf
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ QDF_STATUS utils_dfs_reset(struct wlan_objmgr_pdev *pdev)
|
|||
|
||||
dfs_reset(dfs);
|
||||
dfs_nol_update(dfs);
|
||||
dfs_init_precac_list(dfs);
|
||||
dfs_reset_precaclists(dfs);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue