diff options
author | 2017-11-07 18:26:53 -0600 | |
---|---|---|
committer | 2017-11-08 14:47:07 -0600 | |
commit | a405f191f42ead45a03c000110a16683d30f7333 (patch) | |
tree | b215842a21055c1e8ccc854b3b5de7d6f8a4f84c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PCI: Move pci_map_rom() error path (diff) | |
download | wireguard-linux-a405f191f42ead45a03c000110a16683d30f7333.tar.xz wireguard-linux-a405f191f42ead45a03c000110a16683d30f7333.zip |
PCI: Fail pci_map_rom() if the option ROM is invalid
If we detect a invalid PCI option ROM (e.g., invalid ROM header signature),
we should unmap it immediately and fail. It doesn't make any sense to
return a mapped area with size of 0.
I have seen this case on Intel GVTg vGPU, which has no VBIOS. It will not
cause a real problem, but we should skip it as early as possible.
Signed-off-by: Changbin Du <changbin.du@intel.com>
[bhelgaas: split non-functional change into separate patch]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions