mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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
This commit is contained in:
parent
2cf46f639a
commit
5256306ace
1 changed files with 2 additions and 1 deletions
|
|
@ -387,7 +387,8 @@ static void __cds_cpu_hotplug_notify(uint32_t cpu, bool cpu_up)
|
|||
if (pref_cpu == 0)
|
||||
return;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue