aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael J. Wysocki2023-09-22 18:34:34 +0200
committerRafael J. Wysocki2023-09-22 18:34:34 +0200
commita1001c37f83b30a75c17796b453769773b71f9b2 (patch)
tree387e7daf5a120bfb4064e7dcfac75276a3773520
parente86cdc80c6ee5dbf9a22bd2b260ebd28f09624f8 (diff)
parentb2eb3e67ee68dee9c0555466dfa8d7f0ffcc00db (diff)
Merge branch 'acpi-processor'
Merge a fix for recently introduced uninitialized memory access in the ACPI processor driver from Michal Wilczynski. * acpi-processor: ACPI: processor: Fix uninitialized access of buf in acpi_set_pdc_bits()
-rw-r--r--drivers/acpi/processor_pdc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/processor_pdc.c b/drivers/acpi/processor_pdc.c
index 1a8591e9a9bf..994091bd52de 100644
--- a/drivers/acpi/processor_pdc.c
+++ b/drivers/acpi/processor_pdc.c
@@ -19,6 +19,7 @@ static void acpi_set_pdc_bits(u32 *buf)
{
buf[0] = ACPI_PDC_REVISION_ID;
buf[1] = 1;
+ buf[2] = 0;
/* Twiddle arch-specific bits needed for _PDC */
arch_acpi_set_proc_cap_bits(&buf[2]);