]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
PCI/VPD: Treat initial 0xff as missing EEPROM
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 29 Jul 2021 17:22:25 +0000 (12:22 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 Jul 2021 18:41:52 +0000 (13:41 -0500)
commit4e0d77f8e831fcbe86a02dd0ead12d9c8c057700
tree27d50b6ec2cf4f56fc56ec6515dc56035359f7c4
parent70730db0f611a721fe652cfe92c7f94ccf687454
PCI/VPD: Treat initial 0xff as missing EEPROM

Previously we assumed that the first tag being 0x00 meant an EEPROM was
missing.  The first tag being 0xff means the same thing; check for that
also.

[bhelgaas: rework error mesage]
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/pci/vpd.c