Blame SOURCES/0001-dmidecode-Print-type-33-name-unconditionally.patch

dfabe0
From 65438a7ec0f4cddccf810136da6f280bd148af71 Mon Sep 17 00:00:00 2001
dfabe0
From: Jean Delvare <jdelvare@suse.de>
dfabe0
Date: Mon, 23 Mar 2020 16:47:20 +0100
dfabe0
Subject: [PATCH 01/23] dmidecode: Print type 33 name unconditionally
dfabe0
dfabe0
Even if a type 33 structure is too short, we can still display its
dfabe0
type name as we do for all other structure types.
dfabe0
dfabe0
Signed-off-by: Jean Delvare <jdelvare@suse.de>
dfabe0
---
dfabe0
 dmidecode.c | 2 +-
dfabe0
 1 file changed, 1 insertion(+), 1 deletion(-)
dfabe0
dfabe0
diff --git a/dmidecode.c b/dmidecode.c
dfabe0
index 8ebd8626d6ea..71c166f0595d 100644
dfabe0
--- a/dmidecode.c
dfabe0
+++ b/dmidecode.c
dfabe0
@@ -4807,8 +4807,8 @@ static void dmi_decode(const struct dmi_header *h, u16 ver)
dfabe0
 			break;
dfabe0
 
dfabe0
 		case 33: /* 7.34 64-bit Memory Error Information */
dfabe0
-			if (h->length < 0x1F) break;
dfabe0
 			printf("64-bit Memory Error Information\n");
dfabe0
+			if (h->length < 0x1F) break;
dfabe0
 			printf("\tType: %s\n",
dfabe0
 				dmi_memory_error_type(data[0x04]));
dfabe0
 			printf("\tGranularity: %s\n",
dfabe0
-- 
dfabe0
2.17.1
dfabe0