diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-11 07:20:50 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-11 19:47:43 -0400 |
commit | 5d4494573c1fed806b97c2a1ba619d50bb89d1ed (patch) | |
tree | ab72fc515b579ccdd09655093c0930621ce90444 /drivers/pci | |
parent | d0e639c9e06d44e713170031fe05fb60ebe680af (diff) |
ACPI / hotplug / PCI: Fix error code path in acpiphp_enumerate_slots()
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>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index 0b7d23b4ad95..5042b572609e 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -1002,6 +1002,7 @@ void acpiphp_enumerate_slots(struct pci_bus *bus) | |||
1002 | if (WARN_ON(!context)) { | 1002 | if (WARN_ON(!context)) { |
1003 | mutex_unlock(&acpiphp_context_lock); | 1003 | mutex_unlock(&acpiphp_context_lock); |
1004 | put_device(&bus->dev); | 1004 | put_device(&bus->dev); |
1005 | pci_dev_put(bridge->pci_dev); | ||
1005 | kfree(bridge); | 1006 | kfree(bridge); |
1006 | return; | 1007 | return; |
1007 | } | 1008 | } |