git: 109a1b8fbf6f - stable/14 - acpidump: improve length calculation for several IVHD elements
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Jun 2024 10:15:25 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=109a1b8fbf6f27c5ba3d826fe638e5c4c07f4cad
commit 109a1b8fbf6f27c5ba3d826fe638e5c4c07f4cad
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-05-30 15:21:59 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-06-07 10:15:11 +0000
acpidump: improve length calculation for several IVHD elements
(cherry picked from commit 1eb7099eaceacd4e26606b074db6633ca7e5359a)
---
usr.sbin/acpi/acpidump/acpi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/usr.sbin/acpi/acpidump/acpi.c b/usr.sbin/acpi/acpidump/acpi.c
index 6f8effe58fbd..7b2e0c5e4d12 100644
--- a/usr.sbin/acpi/acpidump/acpi.c
+++ b/usr.sbin/acpi/acpidump/acpi.c
@@ -1629,8 +1629,8 @@ acpi_handle_ivrs_ivhd_devs(ACPI_IVRS_DE_HEADER *d, char *de)
} else if (d->Type == ACPI_IVRS_TYPE_EXT_START) {
d8b = (ACPI_IVRS_DEVICE8B *)db;
len = sizeof(*d8b);
- d4 = (ACPI_IVRS_DEVICE4 *)(db + sizeof(*d8a));
- len = sizeof(*d8a) + sizeof(*d4);
+ d4 = (ACPI_IVRS_DEVICE4 *)(db + sizeof(*d8b));
+ len = sizeof(*d8b) + sizeof(*d4);
printf("\t\tDev Type=%#x Id=%#06x-%#06x",
d8a->Header.Type, d8a->Header.Id, d4->Header.Id);
acpi_handle_ivrs_ivhd_dte(d8b->Header.DataSetting);