linux-kernelorg-stable/drivers/acpi
Pengjie Zhang f103fa127c ACPI: PCC: Fix race condition by removing static qualifier
Local variable 'ret' in acpi_pcc_address_space_setup() is currently
declared as 'static'. This can lead to race conditions in a
multithreaded environment.

Remove the 'static' qualifier to ensure that 'ret' will be allocated
directly on the stack as a local variable.

Fixes: a10b1c99e2 ("ACPI: PCC: Setup PCC Opregion handler only if platform interrupt is available")
Signed-off-by: Pengjie Zhang <zhangpengjie2@huawei.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: lihuisong@huawei.com
Cc: 6.2+ <stable@vger.kernel.org> # 6.2+
[ rjw: Changelog edits ]
Link: https://patch.msgid.link/20251210132634.2050033-1-zhangpengjie2@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2025-12-15 13:00:33 +01:00
..
acpica ACPICA: Avoid walking the Namespace if start_node is NULL 2025-11-25 22:14:11 +01:00
apei Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
arm64 arm64 updates for 6.19: 2025-12-02 17:03:55 -08:00
dptf Thermal control updates for 6.19-rc1 2025-12-02 17:49:12 -08:00
nfit
numa cxl for v6.19 2025-12-04 17:55:18 -08:00
pmic
riscv ACPI: RIMT: Fix unused function warnings when CONFIG_IOMMU_API is disabled 2025-10-17 21:45:08 -06:00
x86 Merge branches 'acpi-misc' and 'pnp' 2025-11-28 15:08:38 +01:00
Kconfig RISC-V updates for the v6.18 merge window (part two) 2025-10-04 10:36:22 -07:00
Makefile
ac.c
acpi_adxl.c
acpi_apd.c
acpi_configfs.c
acpi_dbg.c
acpi_extlog.c
acpi_ffh.c
acpi_fpdt.c
acpi_ipmi.c
acpi_lpat.c
acpi_lpit.c
acpi_memhotplug.c
acpi_mrrm.c ACPI: MRRM: Fix memory leaks and improve error handling 2025-11-07 21:48:49 +01:00
acpi_pad.c
acpi_pcc.c ACPI: PCC: Fix race condition by removing static qualifier 2025-12-15 13:00:33 +01:00
acpi_platform.c
acpi_pnp.c
acpi_processor.c
acpi_tad.c ACPI: TAD: Use PM_RUNTIME_ACQUIRE()/PM_RUNTIME_ACQUIRE_ERR() 2025-11-14 21:25:15 +01:00
acpi_video.c ACPI: video: Fix use-after-free in acpi_video_switch_brightness() 2025-10-23 20:36:55 +02:00
acpi_watchdog.c
battery.c ACPI: battery: Drop redundant locking 2025-10-27 20:19:52 +01:00
bgrt.c
bus.c
button.c ACPI: button: Call input_free_device() on failing input device registration 2025-10-22 21:19:23 +02:00
container.c
cppc_acpi.c ACPI: CPPC: Fix missing PCC check for guaranteed_perf 2025-12-15 12:56:46 +01:00
debugfs.c
device_pm.c
device_sysfs.c
dock.c
ec.c ACPI: EC: Add WQ_PERCPU to alloc_workqueue() users 2025-11-03 18:45:42 +01:00
ec_sys.c
event.c
evged.c
fan.h Thermal control updates for 6.19-rc1 2025-12-02 17:49:12 -08:00
fan_attr.c ACPI: fan: Use ACPI handle when retrieving _FST 2025-10-24 10:29:08 +02:00
fan_core.c ACPI: fan: Add support for Microsoft fan extensions 2025-10-27 20:56:01 +01:00
fan_hwmon.c ACPI: fan: Add hwmon notification support 2025-10-27 20:56:01 +01:00
glue.c
hed.c
internal.h ACPI: DPTF: Remove int340x thermal scan handler 2025-11-07 20:45:37 +01:00
ioapic.c
irq.c ACPI: irq: Add interrupt affinity reporting interface 2025-10-27 17:16:32 +01:00
mipi-disco-img.c
nhlt.c
nvs.c
osi.c
osl.c ACPI: OSL: Add WQ_PERCPU to alloc_workqueue() users 2025-11-03 18:45:42 +01:00
pci_irq.c
pci_link.c syscore: Pass context data to callbacks 2025-11-14 10:01:52 +01:00
pci_mcfg.c
pci_root.c
pci_slot.c
pfr_telemetry.c
pfr_update.c
platform_profile.c acpi: platform_profile - Add max-power profile option 2025-11-28 12:03:22 +02:00
power.c
pptt.c ACPI / PPTT: Add a helper to fill a cpumask from a cache_id 2025-11-19 18:34:14 +00:00
prmt.c ACPI: PRM: Add acpi_prm_handler_available() 2025-10-27 15:45:22 +01:00
proc.c
processor_core.c ACPI: processor_core: fix map_x2apic_id for amd-pstate on am4 2025-11-26 18:06:25 +01:00
processor_driver.c Revert "ACPI: processor: Update cpuidle driver check in __acpi_processor_start()" 2025-11-27 20:52:55 +01:00
processor_idle.c Merge back ACPI processor driver changes for 6.19 2025-11-26 13:56:30 +01:00
processor_pdc.c
processor_perflib.c
processor_thermal.c
processor_throttling.c
property.c ACPI: property: use min() instead of min_t() 2025-11-24 20:45:38 +01:00
reboot.c
resource.c Merge branches 'acpi-apei', 'acpi-misc' and 'pnp' 2025-09-29 15:28:51 +02:00
sbs.c ACPI: SBS: Fix present test in acpi_battery_read() 2025-11-03 17:29:52 +01:00
sbshc.c
sbshc.h
scan.c Thermal control updates for 6.19-rc1 2025-12-02 17:49:12 -08:00
sleep.c soc: driver updates for 6.19 2025-12-05 17:29:04 -08:00
sleep.h ACPI: PM: s2idle: Staticise LPS0 callback functions 2025-10-20 20:39:33 +02:00
spcr.c ACPI: SPCR: Check for table version when using precise baudrate 2025-10-27 20:43:41 +01:00
sysfs.c
tables.c ACPI / MPAM: Parse the MPAM table 2025-11-19 18:34:20 +00:00
thermal.c ACPI: thermal: Add WQ_PERCPU to alloc_workqueue() users 2025-11-03 18:45:42 +01:00
thermal_lib.c
tiny-power-button.c
utils.c
video_detect.c
viot.c
wakeup.c