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

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