Эх сурвалжийг харах

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
Shashikala Prabhu 7 жил өмнө
parent
commit
e858515daf

+ 1 - 1
umac/dfs/dispatcher/src/wlan_dfs_utils_api.c

@@ -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;
 }