diff mbox series

acpi: ivrs: fix the tests stuck at validate IVRS table

Message ID 20230912031812.10616-1-ivan.hu@canonical.com
State Accepted
Headers show
Series acpi: ivrs: fix the tests stuck at validate IVRS table | expand

Commit Message

Ivan Hu Sept. 12, 2023, 3:18 a.m. UTC
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@canonical.com>
---
 src/acpi/ivrs/ivrs.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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;
 		}