Selaa lähdekoodia

qca-wifi: Free precac_entry from ETSI Precac required list on radar detect

When the CAC timer is in progress and radar is detected, a NULL pointer
dereference is observed when the radar detected channels are removed
from etsi required lists and added to NOL.

This issue is seen as the next etsi precac entry in the etsi required
list is freed instead of the current etsi precac entry.

This issue is fixed by freeing the current etsi precac entry in the
etsi precac required list.

Change-Id: I609174b23b0d6d2ea36ca26b011359dcf5876c3a
CRs-Fixed: 2463762
Hariharan Basuthkar 6 vuotta sitten
vanhempi
sitoutus
4a439c7a2a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      umac/dfs/core/src/misc/dfs_etsi_precac.c

+ 1 - 1
umac/dfs/core/src/misc/dfs_etsi_precac.c

@@ -137,7 +137,7 @@ void dfs_mark_etsi_precac_dfs(struct wlan_dfs *dfs, uint8_t *channels,
 						continue;
 		TAILQ_REMOVE(&dfs->dfs_etsiprecac_required_list,
 			     precac_entry, pe_list);
-		qdf_mem_free(tmp_precac_entry);
+		qdf_mem_free(precac_entry);
 		}
 	}
 	PRECAC_LIST_UNLOCK(dfs);