From f8f6e7e95de40ed1e656bb43183180af40ef3ec9 Mon Sep 17 00:00:00 2001 From: "Masti, Narayanraddi" Date: Tue, 25 Aug 2015 10:22:46 +0530 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 645f0e64fd72..c52b861fa490 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/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;