diff mbox

ACPI / hotplug / PCI: Fix error code path in acpiphp_enumerate_slots()

Message ID 2737842.bynDuCj2Fi@vostro.rjw.lan
State Not Applicable
Headers show

Commit Message

Rafael J. Wysocki Oct. 10, 2013, 11:47 p.m. UTC
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

One of the error code paths in acpiphp_enumerate_slots() is missing
a pci_dev_put(bridge->pci_dev) call, so add it.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

This is new in 3.12-rc.

 drivers/pci/hotplug/acpiphp_glue.c |    1 +
 1 file changed, 1 insertion(+)

To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox


Index: linux-pm/drivers/pci/hotplug/acpiphp_glue.c
--- linux-pm.orig/drivers/pci/hotplug/acpiphp_glue.c
+++ linux-pm/drivers/pci/hotplug/acpiphp_glue.c
@@ -1007,6 +1007,7 @@  void acpiphp_enumerate_slots(struct pci_
 		if (WARN_ON(!context)) {
+			pci_dev_put(bridge->pci_dev);