diff options
| author | Hanumanth Reddy Pothula <c_hpothu@codeaurora.org> | 2016-11-21 18:40:27 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-11-29 23:10:35 -0800 |
| commit | 72f1384f5ca452b2ab06ace2508aaffc569dd408 (patch) | |
| tree | 5286722a4c4f2ac1be933da9a0347d074397603d | |
| parent | 33c0a0ee06d349a98f1a7f4f71ace6e44788eaca (diff) | |
qcacld-2.0: On thread stuck timer expire, call timer callback
prima to qcacld-2.0 propagation.
Presently, thread stuck timer callback is called only if userdata
is valid, from WD timer worker thread. But while initializing timer,
userdata is set to NULL. Hence timer callback isn't called.
Don't validate userdata in WD timer worker thread, before calling
thread stuck timer expire.
Change-Id: I1bca1d931e42941deab7c5fdbaee88fa2ec75f35
CRs-Fixed: 1087146
| -rw-r--r-- | CORE/VOSS/src/vos_timer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/CORE/VOSS/src/vos_timer.c b/CORE/VOSS/src/vos_timer.c index a063c89e13a2..cca2a09c667a 100644 --- a/CORE/VOSS/src/vos_timer.c +++ b/CORE/VOSS/src/vos_timer.c @@ -985,11 +985,9 @@ static void __vos_process_wd_timer(void) node); list_del(pos); spin_unlock(&vos_global_context->wdthread_work_lock); - if ((NULL != wdthread_timer_work->callback) && - (NULL != wdthread_timer_work->userdata)) { + if (NULL != wdthread_timer_work->callback) wdthread_timer_work->callback( wdthread_timer_work->userdata); - } vos_mem_free(wdthread_timer_work); spin_lock(&vos_global_context->wdthread_work_lock); } |
