aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2025-03-28 20:39:08 +0000
committerRafael J. Wysocki <[email protected]>2025-04-01 16:44:12 +0000
commit9e4e249018d208678888bdf22f6b652728106528 (patch)
treeec8a7d37973e058126a960f5c7d35f4f700a5ea3 /net/unix/af_unix.c
parentMerge tag 'pm-6.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafa... (diff)
downloadkernel-9e4e249018d208678888bdf22f6b652728106528.tar.gz
kernel-9e4e249018d208678888bdf22f6b652728106528.zip
cpufreq: Reference count policy in cpufreq_update_limits()
Since acpi_processor_notify() can be called before registering a cpufreq driver or even in cases when a cpufreq driver is not registered at all, cpufreq_update_limits() needs to check if a cpufreq driver is present and prevent it from being unregistered. For this purpose, make it call cpufreq_cpu_get() to obtain a cpufreq policy pointer for the given CPU and reference count the corresponding policy object, if present. Fixes: 5a25e3f7cc53 ("cpufreq: intel_pstate: Driver-specific handling of _PPC updates") Closes: https://lore.kernel.org/linux-acpi/Z-ShAR59cTow0KcR@mail-itl Reported-by: Marek Marczykowski-Górecki <[email protected]> Cc: All applicable <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Viresh Kumar <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions