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:Liao Chang <liaochang1@huawei.com> Signed-off-by:
Viresh Kumar <viresh.kumar@linaro.org>
Loading
Please register or sign in to comment