aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c1
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 }