Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107413610
D47109.id144887.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
836 B
Referenced Files
None
Subscribers
None
D47109.id144887.diff
View Options
diff --git a/usr.sbin/acpi/acpidump/acpi.c b/usr.sbin/acpi/acpidump/acpi.c
--- a/usr.sbin/acpi/acpidump/acpi.c
+++ b/usr.sbin/acpi/acpidump/acpi.c
@@ -2631,13 +2631,13 @@
acpi_print_rsd_ptr(rp);
if (rp->Revision < 2) {
rsdp = (ACPI_TABLE_HEADER *)acpi_map_sdt(rp->RsdtPhysicalAddress);
- if (memcmp(rsdp->Signature, "RSDT", 4) != 0 ||
+ if (memcmp(rsdp->Signature, "RSDT", ACPI_NAMESEG_SIZE) != 0 ||
acpi_checksum(rsdp, rsdp->Length) != 0)
errx(1, "RSDT is corrupted");
addr_size = sizeof(uint32_t);
} else {
rsdp = (ACPI_TABLE_HEADER *)acpi_map_sdt(rp->XsdtPhysicalAddress);
- if (memcmp(rsdp->Signature, "XSDT", 4) != 0 ||
+ if (memcmp(rsdp->Signature, "XSDT", ACPI_NAMESEG_SIZE) != 0 ||
acpi_checksum(rsdp, rsdp->Length) != 0)
errx(1, "XSDT is corrupted");
addr_size = sizeof(uint64_t);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 14, 7:35 PM (6 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14107007
Default Alt Text
D47109.id144887.diff (836 B)
Attached To
Mode
D47109: acpidump: Use ACPI_NAMESEG_SIZE instead of 4
Attached
Detach File
Event Timeline
Log In to Comment