]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Add domain number check to find_smbios_instance_string()
authorSujith Pandel <sujithpshankar@gmail.com>
Tue, 2 May 2017 10:55:40 +0000 (06:55 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 13 Jun 2017 16:44:23 +0000 (11:44 -0500)
commit9c80ffd42296081a2907cfb3b86a47f6b5a6b1e8
tree346437b150663647f4708e400a5c5b4daf7953a4
parentecc5848a91062fec56255055f76a8e53daaec85d
PCI: Add domain number check to find_smbios_instance_string()

The function find_smbios_instance_string() does not consider the
PCI domain number.  As a result, SMBIOS type 41 device type instance
would be exported to sysfs for all the PCI domains which have a
PCI device with same bus/device/function, though PCI bus/device/func
from a specific PCI domain has SMBIOS type 41 device type instance
defined.

Address the issue by making find_smbios_instance_string() check PCI domain
number as well.

Reported-by: Shai Fultheim <Shai@ScaleMP.com>
Suggested-by: Shai Fultheim <Shai@ScaleMP.com>
Tested-by: Shai Fultheim <Shai@ScaleMP.com>
Signed-off-by: Sujith Pandel <sujithpshankar@gmail.com>
Signed-off-by: Narendra K <Narendra_K@Dell.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-label.c