aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2021-04-05 21:29:22 -0700
committerDavid S. Miller <davem@davemloft.net>2021-04-06 16:30:17 -0700
commit66c3f05ddc538ee796321210c906b6ae6fc0792a (patch)
tree19a45d6949a32502e86400b06ecf1c333d5029eb /tools/perf/scripts/python/exported-sql-viewer.py
parent2a2403ca3add03f542f6b34bef9f74649969b06d (diff)
pcnet32: Use pci_resource_len to validate PCI resource
pci_resource_start() is not a good indicator to determine if a PCI resource exists or not, since the resource may start at address 0. This is seen when trying to instantiate the driver in qemu for riscv32 or riscv64. pci 0000:00:01.0: reg 0x10: [io 0x0000-0x001f] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000001f] ... pcnet32: card has no PCI IO resources, aborting Use pci_resouce_len() instead. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions