Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0c3bb4bd authored by Junjie Wu's avatar Junjie Wu
Browse files

cpufreq: Set policy for NULL before cleaning up kobj



__cpufreq_remove_dev_finish() cleans up the policy->kobj while
per_cpu(cpufreq_cpu_data) still contains a valid policy pointer.
This causes a race between kobject_get() called from cpufreq_cpu_get()
and cpu hotplug.

Set cpufreq_cpu_data to NULL before cleaning up kobject so that
subsequent cpufreq_cpu_get() will fail and thus not race with
cpu hotplug.

Change-Id: I0e2d1a64b7aac98aa69e137cc902e07d0edb786e
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent f75c756e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment