Skip to content
Commit e613d8cf authored by Liao Chang's avatar Liao Chang Committed by Viresh Kumar
Browse files

cpufreq: cppc: Set fie_disabled to FIE_DISABLED if fails to create kworker_fie



The function cppc_freq_invariance_init() may failed to create
kworker_fie, make it more robust by setting fie_disabled to FIE_DISBALED
to prevent an invalid pointer dereference in kthread_destroy_worker(),
which called from cppc_freq_invariance_exit().

Signed-off-by: default avatarLiao Chang <liaochang1@huawei.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 6a4fec4f
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