diff options
| author | jitiphil <jitiphil@codeaurora.org> | 2018-03-13 13:07:31 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-03-14 04:51:27 -0700 |
| commit | abcdb89ffdcf7429047644cf83d77dd6670a178a (patch) | |
| tree | 58230f2b55d34dcd81a00943418fc21328fde4fe | |
| parent | 964f993eac1e635263f71d46125b8c94bbb36081 (diff) | |
qcacld-3.0: Fix access to ol_rx_thread after thread shutdown
Currenty we are trying to access the ol_rx_thread in
ds_cpu_hotplug_notify function after we shut the thread
down in cds_sched_close function
To address the issue keep a NULL check for the ol_rx_thread
Change-Id: Icddd3ace52bbe773790546d1ace1fd463bc1a7e7
CRs-Fixed: 2200501
| -rw-r--r-- | core/cds/src/cds_sched.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/cds/src/cds_sched.c b/core/cds/src/cds_sched.c index 56931a241896..ceecc57031ba 100644 --- a/core/cds/src/cds_sched.c +++ b/core/cds/src/cds_sched.c @@ -409,7 +409,8 @@ __cds_cpu_hotplug_notify(struct notifier_block *block, if (pref_cpu == 0) return NOTIFY_OK; - if (!cds_set_cpus_allowed_ptr(pSchedContext->ol_rx_thread, pref_cpu)) + if (pSchedContext->ol_rx_thread && + !cds_set_cpus_allowed_ptr(pSchedContext->ol_rx_thread, pref_cpu)) affine_cpu = pref_cpu; return NOTIFY_OK; |
