acpi: Add a checksum to the DMAR table
authorSimon Glass <sjg@chromium.org>
Sat, 15 Mar 2025 14:26:03 +0000 (14:26 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 3 Apr 2025 17:43:22 +0000 (11:43 -0600)
This table lacks a correct checksum at present, so fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/acpi/acpi_table.c

index fd6156f..a80e164 100644 (file)
@@ -66,6 +66,7 @@ int acpi_create_dmar(struct acpi_dmar *dmar, enum dmar_flags flags)
 
        dmar->host_address_width = info.address_width - 1;
        dmar->flags = flags;
+       header->checksum = table_compute_checksum(dmar, header->length);
 
        return 0;
 }