Blame SOURCES/0001-dmidecode-Fix-System-Slot-Information-for-PCIe-SSD.patch

4a6338
From fd08479625b5845e4d725ab628628f7ebfccc407 Mon Sep 17 00:00:00 2001
4a6338
From: Prabhakar pujeri <Prabhakar.Pujeri@dell.com>
4a6338
Date: Tue, 15 Oct 2019 14:24:46 +0200
4a6338
Subject: [PATCH] dmidecode: Fix System Slot Information for PCIe SSD
4a6338
4a6338
Output for type 9 show <out of spec> for PCIe SSD. SMBIOS spec table
4a6338
48 describes 2.5" and 3.5" PCIe SSD formats.
4a6338
4a6338
Signed-off-by: Prabhakar pujeri <prabhakar.pujeri@dell.com>
4a6338
Signed-off-by: Jean Delvare <jdelvare@suse.de>
4a6338
---
4a6338
 dmidecode.c | 6 ++++--
4a6338
 1 file changed, 4 insertions(+), 2 deletions(-)
4a6338
4a6338
diff --git a/dmidecode.c b/dmidecode.c
4a6338
index aef18f8fe998..68bfa457c9bd 100644
4a6338
--- a/dmidecode.c
4a6338
+++ b/dmidecode.c
4a6338
@@ -1906,10 +1906,12 @@ static const char *dmi_slot_length(u8 code)
4a6338
 		"Other", /* 0x01 */
4a6338
 		"Unknown",
4a6338
 		"Short",
4a6338
-		"Long" /* 0x04 */
4a6338
+		"Long",
4a6338
+		"2.5\" drive form factor",
4a6338
+		"3.5\" drive form factor" /* 0x06 */
4a6338
 	};
4a6338
 
4a6338
-	if (code >= 0x01 && code <= 0x04)
4a6338
+	if (code >= 0x01 && code <= 0x06)
4a6338
 		return length[code - 0x01];
4a6338
 	return out_of_spec;
4a6338
 }
4a6338
-- 
4a6338
2.17.1
4a6338