Skip to content
Snippets Groups Projects
Commit 38789a40 authored by Srinivas Girigowda's avatar Srinivas Girigowda Committed by Ecco Park
Browse files

qcacld-2.0: Fix memory leak issue


Memory should be allocated to radar_event only when radar phy
event needs to be sent to WMA layer.

Add changes to fix memory leak.

CRs-Fixed: 1065466
Bug: 34514463
Change-Id: Ia3e93ddd47913956c27487472b6a70eb68d63fd9
Signed-off-by: default avatarEcco Park <eccopark@google.com>
parent 5d0d2cef
No related branches found
No related tags found
No related merge requests found
......@@ -36027,9 +36027,10 @@ int wma_dfs_indicate_radar(struct ieee80211com *ic,
( pmac->sap.SapDfsInfo.disable_dfs_ch_switch == VOS_TRUE) )
{
radar_event = (struct wma_dfs_radar_indication *)
vos_mem_malloc(sizeof(*radar_event));
vos_mem_malloc(sizeof(struct wma_dfs_radar_indication));
if (radar_event == NULL) {
WMA_LOGE(FL("Failed to allocate memory for radar_event"));
adf_os_spin_unlock_bh(&ic->chan_lock);
WMA_LOGE("%s: DFS- Invalid radar_event", __func__);
return -ENOMEM;
}
 
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment