diff options
author | Keith Busch <[email protected]> | 2017-03-29 22:49:17 -0500 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2017-03-29 22:55:16 -0500 |
commit | fe2bd75b2290bf6acd4b91312697e445668dd773 (patch) | |
tree | 2292b23906bd7d205c3f79a877d1b839a6bc4bf5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0170591bb06788034ae72bfa56e42f283ab3de5a (diff) |
PCI: Short-circuit pci_device_is_present() for disconnected devices
If the PCI device is disconnected, return false immediately from
pci_device_is_present(). pci_device_is_present() uses the bus accessors,
so the early return in the device accessors doesn't help here.
Tested-by: Krishna Dhulipala <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Wei Zhang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions