Skip to content

Commit c302d35

Browse files
kamalmostafabjorn-helgaas
authored andcommitted
Revert duplicate "PCI: pciehp: Prevent NULL dereference during probe"
This reverts bceee4a ("PCI: pciehp: Prevent NULL dereference during probe") because it was accidentally applied twice: 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. [bhelgaas: tidy changelog, drop stable tag] Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Andreas Noever <andreas.noever@gmail.com>
1 parent f114040 commit c302d35

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎drivers/pci/hotplug/pciehp_core.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,6 @@ static int pciehp_probe(struct pcie_device *dev)
262262
goto err_out_none;
263263
}
264264

265-
if (!dev->port->subordinate) {
266-
/* Can happen if we run out of bus numbers during probe */
267-
dev_err(&dev->device,
268-
"Hotplug bridge without secondary bus, ignoring\n");
269-
goto err_out_none;
270-
}
271-
272265
ctrl = pcie_init(dev);
273266
if (!ctrl) {
274267
dev_err(&dev->device, "Controller initialization failed\n");

0 commit comments

Comments
 (0)