diff options
author | Simon Glass <sjg@chromium.org> | 2025-03-15 14:26:03 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-04-03 11:43:22 -0600 |
commit | e53d631f833b7cdcaa413a8e339acfe3d1c01a1f (patch) | |
tree | 1092ec2cad199e3573a1f23bcd3e4d7d5396f64c | |
parent | 698c00e0b7d33df2032356b6a79c382b715e9748 (diff) |
acpi: Add a checksum to the DMAR table
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>
-rw-r--r-- | lib/acpi/acpi_table.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/acpi/acpi_table.c b/lib/acpi/acpi_table.c index fd6156f63d3..a80e164bc82 100644 --- a/lib/acpi/acpi_table.c +++ b/lib/acpi/acpi_table.c @@ -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; } |