Skip to contentSkip to conversation

Revert duplicate "PCI: pciehp: Prevent NULL dereference during probe"

PATCH New Kamal Mostafa 1 participant 1 message Oct 20, 2014 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert duplicate "PCI: pciehp: Prevent NULL dereference during probe"

This reverts commit bceee4a97eb58bd0e80e39eff11b506ddd9e7ad3.

This patch was applied twice (identical patch, different descriptions):
62e4492 PCI: Prevent NULL dereference during pciehp probe bceee4a PCI: pciehp: Prevent NULL dereference during probe

Revert the latter to dispose of the duplicated code block.

Cc Andreas Noever <[email protected]>
Cc Bjorn Helgaas <[email protected]>
---
 drivers/pci/hotplug/pciehp_core.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/pci/hotplug/pciehp_core.c +0 -7
index 3a5e7e2..07aa722 100644
@@ -262,13 +262,6 @@ static int pciehp_probe(struct pcie_device *dev)
 		goto err_out_none;
 	}
 
-	if (!dev->port->subordinate) {
-		/* Can happen if we run out of bus numbers during probe */
-		dev_err(&dev->device,
-			"Hotplug bridge without secondary bus, ignoring\n");
-		goto err_out_none;
-	}
-
 	ctrl = pcie_init(dev);
 	if (!ctrl) {
 		dev_err(&dev->device, "Controller initialization failed\n");
Signature · 1 line
1.9.1