PCI: Allow access to VPD attributes with size 0
authorHannes Reinecke <hare@suse.de>
Mon, 15 Feb 2016 08:42:00 +0000 (09:42 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 29 Feb 2016 23:46:50 +0000 (17:46 -0600)
commitf52e5629f66d5fd79ae8b8145d76ae0ddb47e142
treefd7942e21ef8299161bd2ceec0be35db58e72b96
parent9eb45d5cc541142896f5fe7896d824c1091197c9
PCI: Allow access to VPD attributes with size 0

It is not always possible to determine the actual size of the VPD
data, so allow access to them if the size is set to '0'.

Tested-by: Shane Seymour <shane.seymour@hpe.com>
Tested-by: Babu Moger <babu.moger@oracle.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Alexander Duyck <alexander.duyck@gmail.com>
drivers/pci/pci-sysfs.c