Commit 9170c9ef authored by Björn A. Zeeb's avatar Björn A. Zeeb Committed by Linus Torvalds

[PATCH] fix endless loop walking the MADT

Too trivial to see the first time when debugging on weekends ;-))
parent 4f3deba8
...@@ -1038,7 +1038,7 @@ void __init mp_config_ioapic_for_sci(int irq) ...@@ -1038,7 +1038,7 @@ void __init mp_config_ioapic_for_sci(int irq)
status = acpi_get_firmware_table("APIC", 1, ACPI_LOGICAL_ADDRESSING, status = acpi_get_firmware_table("APIC", 1, ACPI_LOGICAL_ADDRESSING,
(acpi_table_header **) &madt); (acpi_table_header **) &madt);
if (ACPI_SUCCESS(status)) { if (ACPI_SUCCESS(status)) {
madt_end = madt + madt->header.length; madt_end = (unsigned long)madt + madt->header.length;
entry = (struct acpi_table_int_src_ovr *) entry = (struct acpi_table_int_src_ovr *)
((unsigned long) madt + sizeof(struct acpi_table_madt)); ((unsigned long) madt + sizeof(struct acpi_table_madt));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment