Skip to content

Commit 13edf75

Browse files
Sebastian Ottrafaeljw
authored andcommitted
ACPI: processor: fix acpi_object initialization
Initialization of the local acpi_object in acpi_processor_get_info() only sets the first 4 bytes to zero and is thus incomplete. This is indicated by messages like: acpi ACPI0007:be: Invalid PBLK length [166288104] Fix this by initializing all 16 bytes of the processor member of that union. Signed-off-by: Sebastian Ott <sebott@redhat.com> Link: https://patch.msgid.link/20250703124215.12522-1-sebott@redhat.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent d0b3b7b commit 13edf75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/acpi/acpi_processor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static inline int acpi_processor_hotadd_init(struct acpi_processor *pr,
275275

276276
static int acpi_processor_get_info(struct acpi_device *device)
277277
{
278-
union acpi_object object = { 0 };
278+
union acpi_object object = { .processor = { 0 } };
279279
struct acpi_buffer buffer = { sizeof(union acpi_object), &object };
280280
struct acpi_processor *pr = acpi_driver_data(device);
281281
int device_declaration = 0;

0 commit comments

Comments
 (0)