diff options
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 6c93af5ced18..d5d6f5667d83 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -2171,7 +2171,7 @@ static int pci_parent_bus_reset(struct pci_dev *dev, int probe) | |||
2171 | u16 ctrl; | 2171 | u16 ctrl; |
2172 | struct pci_dev *pdev; | 2172 | struct pci_dev *pdev; |
2173 | 2173 | ||
2174 | if (dev->subordinate) | 2174 | if (pci_is_root_bus(dev->bus) || dev->subordinate || !dev->bus->self) |
2175 | return -ENOTTY; | 2175 | return -ENOTTY; |
2176 | 2176 | ||
2177 | list_for_each_entry(pdev, &dev->bus->devices, bus_list) | 2177 | list_for_each_entry(pdev, &dev->bus->devices, bus_list) |