Selaa lähdekoodia

qcacld-3.0: free cfgState->buf in failure cases.

qcacld-2.0 to qcacld-3.0 propagation

As part of cleaning up pending action frame, if timeout happens
for tx cnf event then indicate tx failure status as FAIL and free
cfgState->buf to avoid memory leak.

Change-Id: I6caaa8efeab769cce8c4cdfcc868101e63fd8e76
CRs-Fixed: 880779
Masti, Narayanraddi 9 vuotta sitten
vanhempi
sitoutus
146af2ac09
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      core/hdd/src/wlan_hdd_main.c

+ 5 - 0
core/hdd/src/wlan_hdd_main.c

@@ -2081,6 +2081,11 @@ void hdd_cleanup_actionframe(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter)
 		if (!rc) {
 			hddLog(CDF_TRACE_LEVEL_ERROR,
 			       FL("HDD Wait for Action Confirmation Failed!!"));
+			/*
+			 * Inform tx status as FAILURE to upper layer and free
+			 * cfgState->buf
+			 */
+			 hdd_send_action_cnf(adapter, false);
 		}
 	}
 	return;