aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/cppc_acpi.c
diff options
context:
space:
mode:
authorSchspa Shi <[email protected]>2022-05-16 03:02:50 +0000
committerRafael J. Wysocki <[email protected]>2022-05-17 19:39:04 +0000
commitd4627a287e251efed59f2b4bda82c5950768c963 (patch)
tree146bae98dcd7549b946885647acdbf4a1385cf56 /drivers/acpi/cppc_acpi.c
parentcpufreq: Rearrange locking in cpufreq_remove_dev() (diff)
downloadkernel-d4627a287e251efed59f2b4bda82c5950768c963.tar.gz
kernel-d4627a287e251efed59f2b4bda82c5950768c963.zip
cpufreq: Abort show()/store() for half-initialized policies
If policy initialization fails after the sysfs files are created, there is a possibility to end up running show()/store() callbacks for half-initialized policies, which may have unpredictable outcomes. Abort show()/store() in such a case by making sure the policy is active. Also dectivate the policy on such failures. Signed-off-by: Schspa Shi <[email protected]> Acked-by: Viresh Kumar <[email protected]> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions