mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
qcacld-3.0: Free protection_fields_reset_timer
qcacld-2.0 to qcacld-3.0 propagation Free protection_fields_reset_timer in the beginning of peDeleteSession function to avoid the null defreference caused due to the race condition between peDeleteSession and pe_reset_protection_callback. Change-Id: I1b83977bb3683d6dd87ec94a992ac51f39cd97db CRs-Fixed: 815796
This commit is contained in:
parent
cbb555aa3f
commit
7a17a71bb0
1 changed files with 5 additions and 6 deletions
|
|
@ -539,6 +539,11 @@ void pe_delete_session(tpAniSirGlobal mac_ctx, tpPESession session)
|
|||
tx_timer_deactivate(timer_ptr);
|
||||
}
|
||||
|
||||
if (LIM_IS_AP_ROLE(session)) {
|
||||
cdf_mc_timer_stop(&session->protection_fields_reset_timer);
|
||||
cdf_mc_timer_destroy(&session->protection_fields_reset_timer);
|
||||
}
|
||||
|
||||
#if defined (WLAN_FEATURE_VOWIFI_11R)
|
||||
/* Delete FT related information */
|
||||
lim_ft_cleanup(mac_ctx, session);
|
||||
|
|
@ -664,12 +669,6 @@ void pe_delete_session(tpAniSirGlobal mac_ctx, tpPESession session)
|
|||
if (session->limRmfEnabled)
|
||||
cdf_mc_timer_destroy(&session->pmfComebackTimer);
|
||||
#endif
|
||||
|
||||
if (LIM_IS_AP_ROLE(session)) {
|
||||
cdf_mc_timer_stop(&session->protection_fields_reset_timer);
|
||||
cdf_mc_timer_destroy(&session->protection_fields_reset_timer);
|
||||
}
|
||||
|
||||
session->valid = false;
|
||||
|
||||
if (LIM_IS_AP_ROLE(session))
|
||||
|
|
|
|||
Loading…
Reference in a new issue