git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
698c00e
)
acpi: Add a checksum to the DMAR table
author
Simon Glass
<sjg@chromium.org>
Sat, 15 Mar 2025 14:26:03 +0000
(14:26 +0000)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/lib/acpi/acpi_table.c
b/lib/acpi/acpi_table.c
index
fd6156f
..
a80e164
100644
(file)
--- 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;
}