[PATCH] acpi: ivrs: fix the tests stuck at validate IVRS table
Ivan Hu
ivan.hu at canonical.com
Tue Sep 12 03:18:12 UTC 2023
BugLink: https://bugs.launchpad.net/fwts/+bug/2035157
Some buggy firmware with unexpected type which causes the while
loop continues.
Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
src/acpi/ivrs/ivrs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/acpi/ivrs/ivrs.c b/src/acpi/ivrs/ivrs.c
index a9170cb5..2f3474e5 100644
--- a/src/acpi/ivrs/ivrs.c
+++ b/src/acpi/ivrs/ivrs.c
@@ -199,6 +199,7 @@ static int ivrs_test1(fwts_framework *fw)
"IVRSBadIVHDType",
"IVHD or IVMD must have type with Type 0x10, 0x11, 0x20 to 0x22 "
"and 0x40 , got 0x%2.2" PRIx8 " instead", entry->type);
+ offset += entry->length;
break;
}
--
2.17.1
More information about the fwts-devel
mailing list