diff options
| author | Varun Reddy Yeturu <varunreddy.yeturu@codeaurora.org> | 2016-09-13 15:04:54 -0700 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-09-15 17:47:52 -0700 |
| commit | 3b21c7e93d7a05a3d287c7e44028e4161b51d4ee (patch) | |
| tree | db0829d49afaca6c4cc2257698047bbdedf26a56 /core/mac | |
| parent | 5a18365aae347c43a1cc9a314c4b69d2aa676732 (diff) | |
qcacld-3.0: Fix possible NULL pointer dereference for sta_ds
Fix the possible null pointer dereference for sta_ds
Change-Id: I547f4d5e0a3603c2408b835705c617befc1107c5
CRs-Fixed: 1065301
Diffstat (limited to 'core/mac')
| -rw-r--r-- | core/mac/src/pe/lim/lim_api.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c index 426f6228f175..0ed539ed5306 100644 --- a/core/mac/src/pe/lim/lim_api.c +++ b/core/mac/src/pe/lim/lim_api.c @@ -1902,6 +1902,11 @@ QDF_STATUS pe_roam_synch_callback(tpAniSirGlobal mac_ctx, lim_delete_tdls_peers(mac_ctx, session_ptr); curr_sta_ds = dph_lookup_hash_entry(mac_ctx, session_ptr->bssId, &aid, &session_ptr->dph.dphHashTable); + if (curr_sta_ds == NULL) { + lim_log(mac_ctx, LOGE, FL("LFR3:failed to lookup hash entry")); + ft_session_ptr->bRoamSynchInProgress = false; + return status; + } local_nss = curr_sta_ds->nss; session_ptr->limSmeState = eLIM_SME_IDLE_STATE; lim_cleanup_rx_path(mac_ctx, curr_sta_ds, session_ptr); |
