summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2016-11-04 18:08:11 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-07 11:26:28 -0800
commit4026a8cba4168cd2465dfa6a500e4a32e8b2c7f3 (patch)
treefaa13b3c3d628d56d0acb78e8e71583803045632
parente6e827bf24fe1f3daed7449e4600bcad94a60086 (diff)
qcacld-3.0: Fix exception in hdd_get_station_statistics_cb()
An exception was observed in hdd_get_station_statistics_cb() when validating the pStatsContext. The speculation is that the caller had already timed out, and the act of dereferencing the pStatsContext caused an exception even though the context was on the caller's stack. To fix this issue move the context from the stack to the BSS. Change-Id: Ib7adf158e04b174bdf5745491b6787bc2e27d610 CRs-Fixed: 1086276
-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 e0238e3c58fb..ff756b89f10b 100644
--- a/core/hdd/src/wlan_hdd_wext.c
+++ b/core/hdd/src/wlan_hdd_wext.c
@@ -3789,7 +3789,7 @@ QDF_STATUS wlan_hdd_get_station_stats(hdd_adapter_t *pAdapter)
hdd_station_ctx_t *pHddStaCtx = WLAN_HDD_GET_STATION_CTX_PTR(pAdapter);
QDF_STATUS hstatus;
unsigned long rc;
- struct statsContext context;
+ static struct statsContext context;
if (NULL == pAdapter) {
hdd_err("pAdapter is NULL");