mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
qcacld-3.0: Fix race between PD down and Assoc resp handling
In PD down uevent handling, if assoc resp timeout timer is active, the timeout API is called from kernel thread and free up the ‘pLimJoinReq’. Now if assoc resp is received in MC thread it also access ‘pLimJoinReq’ in parallel. This leads to use after free. To fix this post a msg to MC thread to call the timeout APIs of the connection timers. Change-Id: I95e0bbb91c382298e35928d602c096ea5267dbe4 CRs-Fixed: 2184590
This commit is contained in:
parent
d62784459d
commit
99c70a06f3
1 changed files with 3 additions and 3 deletions
|
|
@ -563,7 +563,7 @@ void lim_deactivate_timers(tpAniSirGlobal mac_ctx)
|
|||
if (tx_timer_running(&lim_timer->gLimJoinFailureTimer)) {
|
||||
pe_err("Join failure timer running call the timeout API");
|
||||
/* Cleanup as if join timer expired */
|
||||
lim_process_join_failure_timeout(mac_ctx);
|
||||
lim_timer_handler(mac_ctx, SIR_LIM_JOIN_FAIL_TIMEOUT);
|
||||
}
|
||||
/* Deactivate Join failure timer. */
|
||||
tx_timer_deactivate(&lim_timer->gLimJoinFailureTimer);
|
||||
|
|
@ -578,7 +578,7 @@ void lim_deactivate_timers(tpAniSirGlobal mac_ctx)
|
|||
if (tx_timer_running(&lim_timer->gLimAssocFailureTimer)) {
|
||||
pe_err("Assoc failure timer running call the timeout API");
|
||||
/* Cleanup as if assoc timer expired */
|
||||
lim_process_assoc_failure_timeout(mac_ctx, LIM_ASSOC);
|
||||
lim_assoc_failure_timer_handler(mac_ctx, LIM_ASSOC);
|
||||
}
|
||||
/* Deactivate Association failure timer. */
|
||||
tx_timer_deactivate(&lim_timer->gLimAssocFailureTimer);
|
||||
|
|
@ -586,7 +586,7 @@ void lim_deactivate_timers(tpAniSirGlobal mac_ctx)
|
|||
if (tx_timer_running(&mac_ctx->lim.limTimers.gLimAuthFailureTimer)) {
|
||||
pe_err("Auth failure timer running call the timeout API");
|
||||
/* Cleanup as if auth timer expired */
|
||||
lim_process_auth_failure_timeout(mac_ctx);
|
||||
lim_timer_handler(mac_ctx, SIR_LIM_AUTH_FAIL_TIMEOUT);
|
||||
}
|
||||
/* Deactivate Authentication failure timer. */
|
||||
tx_timer_deactivate(&lim_timer->gLimAuthFailureTimer);
|
||||
|
|
|
|||
Loading…
Reference in a new issue