[PATCH] acpi: ras2: fix the wrong feature type check

Ivan Hu ivan.hu at canonical.com
Thu Oct 16 08:54:24 UTC 2025


BugLink: https://bugs.launchpad.net/fwts/+bug/2127968

Should be the feature_type not reserved

Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
 src/acpi/ras2/ras2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/acpi/ras2/ras2.c b/src/acpi/ras2/ras2.c
index 1df52c0f..998effde 100644
--- a/src/acpi/ras2/ras2.c
+++ b/src/acpi/ras2/ras2.c
@@ -60,7 +60,7 @@ static int ras2_test1(fwts_framework *fw)
 		fwts_log_info_simp_int(fw, "    Instance:                ", pcc_desc->instance);
 
 		fwts_acpi_reserved_zero("RAS2", "Reserved", pcc_desc->reserved, &passed);
-		if (pcc_desc->reserved >= 0x01 && pcc_desc->feature_type <= 0x7F) {
+		if (pcc_desc->feature_type >= 0x01 && pcc_desc->feature_type <= 0x7F) {
 			fwts_failed(fw, LOG_LEVEL_HIGH, "RAS2ReservedType",
 				"RAS2 RAS feature types 0x01-0x7f is reserved, got 0x%" PRIx8,
 				pcc_desc->feature_type);
-- 
2.43.0




More information about the fwts-devel mailing list