Commit e2cdd86b authored by Bjorn Helgaas's avatar Bjorn Helgaas

PCI/VPD: Correct diagnostic for VPD read failure

Previously, when a VPD read failed, we warned about an "invalid large
VPD tag".  Warn about the VPD read failure instead.
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
parent e73f0f0e
...@@ -92,8 +92,8 @@ static size_t pci_vpd_size(struct pci_dev *dev, size_t old_size) ...@@ -92,8 +92,8 @@ static size_t pci_vpd_size(struct pci_dev *dev, size_t old_size)
(tag == PCI_VPD_LTIN_RW_DATA)) { (tag == PCI_VPD_LTIN_RW_DATA)) {
if (pci_read_vpd(dev, off+1, 2, if (pci_read_vpd(dev, off+1, 2,
&header[1]) != 2) { &header[1]) != 2) {
pci_warn(dev, "invalid large VPD tag %02x size at offset %zu", pci_warn(dev, "failed VPD read at offset %zu\n",
tag, off + 1); off + 1);
return 0; return 0;
} }
off += PCI_VPD_LRDT_TAG_SIZE + off += PCI_VPD_LRDT_TAG_SIZE +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment