Blame SOURCES/0004-dmidecode-Handle-OEM-specific-types-in-group-associa.patch

fd304b
From 3acecbbab8ecaf3e3b324a2286e51cf9d7950ad5 Mon Sep 17 00:00:00 2001
fd304b
From: Jean Delvare <jdelvare@suse.de>
fd304b
Date: Tue, 20 Oct 2015 08:47:15 +0200
fd304b
Subject: [PATCH 4/9] dmidecode: Handle OEM-specific types in group
fd304b
 associations
fd304b
fd304b
---
fd304b
 CHANGELOG   | 5 +++++
fd304b
 dmidecode.c | 2 ++
fd304b
 2 files changed, 7 insertions(+)
fd304b
fd304b
diff --git a/CHANGELOG b/CHANGELOG
fd304b
index c940c9f..2aa1082 100644
fd304b
--- a/CHANGELOG
fd304b
+++ b/CHANGELOG
fd304b
@@ -1,3 +1,8 @@
fd304b
+2015-10-20  Jean Delvare  <jdelvare@suse.de>
fd304b
+
fd304b
+	* dmidecode.c: Handle OEM-specific types in group associations
fd304b
+	  (DMI type 14).
fd304b
+
fd304b
 2015-10-14  Jean Delvare  <jdelvare@suse.de>
fd304b
 
fd304b
 	* util.c: Avoid SIGBUS on mmap failure.
fd304b
diff --git a/dmidecode.c b/dmidecode.c
fd304b
index f41c85b..ce0511b 100644
fd304b
--- a/dmidecode.c
fd304b
+++ b/dmidecode.c
fd304b
@@ -172,6 +172,8 @@ static const char *dmi_smbios_structure_type(u8 code)
fd304b
 		"Management Controller Host Interface", /* 42 */
fd304b
 	};
fd304b
 
fd304b
+	if (code >= 128)
fd304b
+		return "OEM-specific";
fd304b
 	if (code <= 42)
fd304b
 		return type[code];
fd304b
 	return out_of_spec;
fd304b
-- 
fd304b
2.5.0
fd304b