mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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
This commit is contained in:
parent
c78f42e46e
commit
2c4e0a1b73
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue