Răsfoiți Sursa

qcacld-3.0: Fix the memory leak caused by pmfSaQueryTimer

this patch will fix the memory leak caused by pmfSaQueryTimer
which was encountered during stress and stability tests.

Change-Id: I5a2367302e0eac3a024626795a4469d1ced76e8c
CRs-Fixed: 970527
Krunal Soni 8 ani în urmă
părinte
comite
6f6088cc41
1 a modificat fișierele cu 6 adăugiri și 10 ștergeri
  1. 6 10
      core/mac/src/pe/lim/lim_utils.c

+ 6 - 10
core/mac/src/pe/lim/lim_utils.c

@@ -702,16 +702,12 @@ void lim_cleanup_mlm(tpAniSirGlobal mac_ctx)
 	 * each STA associated per BSSId and deactivate/delete
 	 * the pmfSaQueryTimer for it
 	 */
-	if (cds_is_driver_recovering()) {
-		QDF_TRACE(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_ERROR,
-				FL("SSR is detected, proceed to clean up pmfSaQueryTimer"));
-		for (bss_entry = 0; bss_entry < mac_ctx->lim.maxBssId;
-						bss_entry++) {
-			if (!mac_ctx->lim.gpSession[bss_entry].valid)
-				continue;
-			lim_deactivate_del_sta(mac_ctx, bss_entry,
-					psession_entry, sta_ds);
-		}
+	for (bss_entry = 0; bss_entry < mac_ctx->lim.maxBssId;
+					bss_entry++) {
+		if (!mac_ctx->lim.gpSession[bss_entry].valid)
+			continue;
+		lim_deactivate_del_sta(mac_ctx, bss_entry,
+				psession_entry, sta_ds);
 	}
 #endif