Skip to contentSkip to conversation

Add serial key as a field to check for in dmi_name_in_vendors.

PATCH In review Alok Kataria 1 participant 1 message Oct 21, 2008 Dmi/smbios support

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 Add serial key as a field to check for in dmi_name_in_vendors.

From: Alok N Kataria <[email protected]>

In some user configurable cases, VMware may choose not to put a VMware specific DMI string, but the serial key is always there and is VMware specific. Add that too to check for in the dmi_name_in_vendors function.

---

 drivers/firmware/dmi_scan.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/firmware/dmi_scan.c +2 -1
index 3e526b6..14fcb52 100644
@@ -476,7 +476,8 @@ int dmi_name_in_vendors(const char *str)
 {
 	static int fields[] = { DMI_BIOS_VENDOR, DMI_BIOS_VERSION, DMI_SYS_VENDOR,
 				DMI_PRODUCT_NAME, DMI_PRODUCT_VERSION, DMI_BOARD_VENDOR,
-				DMI_BOARD_NAME, DMI_BOARD_VERSION, DMI_NONE };
+				DMI_BOARD_NAME, DMI_BOARD_VERSION, DMI_PRODUCT_SERIAL,
+				DMI_NONE };
 	int i;
 	for (i = 0; fields[i] != DMI_NONE; i++) {
 		int f = fields[i];