diff options
-rw-r--r-- | drivers/pci/setup-bus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 1bd41ac2abd9..52fbd426a1c7 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c | |||
@@ -610,7 +610,8 @@ static void pci_bus_dump_res(struct pci_bus *bus) | |||
610 | 610 | ||
611 | for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) { | 611 | for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) { |
612 | struct resource *res = bus->resource[i]; | 612 | struct resource *res = bus->resource[i]; |
613 | if (!res || !res->end) | 613 | |
614 | if (!res || !res->end || !res->flags) | ||
614 | continue; | 615 | continue; |
615 | 616 | ||
616 | dev_printk(KERN_DEBUG, &bus->dev, "resource %d %pR\n", i, res); | 617 | dev_printk(KERN_DEBUG, &bus->dev, "resource %d %pR\n", i, res); |