summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaushik, Sushant <skaushik@qti.qualcomm.com>2014-08-01 12:55:45 +0530
committerPitani Venkata Rajesh Kumar <c_vpitan@qti.qualcomm.com>2014-08-07 12:46:38 +0530
commit1fa1e395cd13e6f11b79ce092870117ed8d8e62f (patch)
treed7bd32fe64aed41f84aeb5865b70a242cb062bc4
parentb5208aeb5b8dda8e7ee5b0ab5cf1b4070da8ad14 (diff)
qca_cld: Fix dangling pAdapter pointer in HDD.
On getting response from FW,SME calls hdd in hdd_tx_per_hit_cb with pAdapter as argument.But by that pAdapter in hdd might be removed. As a part of fix, instead of passing pAdapter, sessionId is passed. So when SME gets response from FW , it will call hdd with sessionId and in hdd based on sessionId a valid pAdapter would be used. Change-Id: I3c4fc2c7f5559cbd9e763b298c5275df7a694da7 CRs-Fixed: 699843
-rw-r--r--CORE/HDD/src/wlan_hdd_wext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c
index ab4810e0e811..aa6fd47c7f5a 100644
--- a/CORE/HDD/src/wlan_hdd_wext.c
+++ b/CORE/HDD/src/wlan_hdd_wext.c
@@ -2555,7 +2555,7 @@ void hdd_tx_per_hit_cb (void *pCallbackContext)
unsigned char tx_fail[16];
union iwreq_data wrqu;
- if (NULL == pAdapter)
+ if (NULL == pAdapter || (WLAN_HDD_ADAPTER_MAGIC != pAdapter->magic))
{
hddLog(LOGE, "hdd_tx_per_hit_cb: pAdapter is NULL");
return;