PCI/VPD: Don't check Large Resource Item Names for validity
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 15 Jul 2021 21:59:58 +0000 (16:59 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 9 Aug 2021 18:43:09 +0000 (13:43 -0500)
commit7fa75dd8c64590850a54991a8bb914667c512b4c
treec240ac9eb8779e4df2e7474d438bcab80a49877c
parent6303049d16f0e69d0449c3c80d0e3695d4f02f94
PCI/VPD: Don't check Large Resource Item Names for validity

VPD consists of a series of Small and Large Resources.  Computing the size
of VPD requires only the length of each, which is specified in the generic
tag of each resource.  We only expect to see ID_STRING, RO_DATA, and
RW_DATA in VPD, but it's not a problem if it contains other resource types
because all we care about is the size.

Drop the validity checking of Large Resource items.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/pci/vpd.c