diff options
| author | Anurag Chouhan <achouhan@codeaurora.org> | 2016-09-12 14:52:45 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-09-16 00:25:13 -0700 |
| commit | 2c4e0a1b733bd97695dd341a921ac135c845ff05 (patch) | |
| tree | e0951bd39feb39cb52ebcb6e13fe26158de818d7 | |
| parent | c78f42e46e00bf98075071309c5ad5576cc8df1b (diff) | |
qcacld-3.0: Add check to Validate cfg_ini
qcacld-2.0 to qcacld-3.0 propagation
Validate cfg_ini before dereferencing the ini
parameter gEnableRoamDelayStats.
Change-Id: I0b2b78f8838cb1c46c60669b8f327ac18e863e80
CRs-Fixed: 1059205
| -rw-r--r-- | core/hdd/src/wlan_hdd_assoc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index bea032f82e5f..22f7e0dde3e8 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -2359,6 +2359,11 @@ static QDF_STATUS hdd_association_completion_handler(hdd_adapter_t *pAdapter, return QDF_STATUS_E_FAILURE; } + /* validate config */ + if (!pHddCtx->config) { + hdd_err("config is NULL"); + return QDF_STATUS_E_NULL_VALUE; + } /* HDD has initiated disconnect, do not send connect result indication * to kernel as it will be handled by __cfg80211_disconnect. */ |
