[PATCH 01/10] dmicheck: fix the extended bios ROM size bit check of type 0

Ivan Hu ivan.hu at canonical.com
Thu Mar 9 09:00:09 UTC 2023


>From the SMBIOS specification, 7.1 the Extended Bios ROM Size Bits
14:15, only 10b and 11b are reserved

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

diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c
index 497a5c5f..22b7a6ec 100644
--- a/src/dmi/dmicheck/dmicheck.c
+++ b/src/dmi/dmicheck/dmicheck.c
@@ -1297,7 +1297,7 @@ static void dmicheck_entry(fwts_framework *fw,
 			/* new fields in spec 3.11 */
 			if (hdr->length < 0x1a)
 				break;
-			dmi_reserved_bits_check(fw, table, addr, "Extended BIOS ROM Size", hdr, sizeof(uint16_t), 0x18, 14, 15);
+			dmi_reserved_bits_check(fw, table, addr, "Extended BIOS ROM Size", hdr, sizeof(uint16_t), 0x18, 15, 15);
 			break;
 
 		case 1: /* 7.2 */
-- 
2.34.1




More information about the fwts-devel mailing list