aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/setup-bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/setup-bus.c')
-rw-r--r--drivers/pci/setup-bus.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
index 20c09bd652db..ed1bd0cdf521 100644
--- a/drivers/pci/setup-bus.c
+++ b/drivers/pci/setup-bus.c
@@ -1367,9 +1367,14 @@ static int __init iov_resources_unassigned(struct pci_dev *dev, void *data)
1367 1367
1368 for (i = PCI_IOV_RESOURCES; i <= PCI_IOV_RESOURCE_END; i++) { 1368 for (i = PCI_IOV_RESOURCES; i <= PCI_IOV_RESOURCE_END; i++) {
1369 struct resource *r = &dev->resource[i]; 1369 struct resource *r = &dev->resource[i];
1370 struct pci_bus_region region;
1370 1371
1371 /* Not assigned or rejected by kernel? */ 1372 /* Not assigned or rejected by kernel? */
1372 if (r->flags && !r->start) { 1373 if (!r->flags)
1374 continue;
1375
1376 pcibios_resource_to_bus(dev, &region, r);
1377 if (!region.start) {
1373 *unassigned = true; 1378 *unassigned = true;
1374 return 1; /* return early from pci_walk_bus() */ 1379 return 1; /* return early from pci_walk_bus() */
1375 } 1380 }