aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/cpci_hotplug_core.c
diff options
context:
space:
mode:
authorScott Murray <scottm@somanetworks.com>2005-06-06 15:48:04 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-09 01:37:59 -0700
commit03e49d40ea3436cae0fe43708f11584130ee4a0c (patch)
treeacaa11b11c0ff1d4c9f743c0d8df2bc5a865a440 /drivers/pci/hotplug/cpci_hotplug_core.c
parent5273a00d9c763108397658d440618f7ac3e40f83 (diff)
downloadkernel_samsung_smdk4412-03e49d40ea3436cae0fe43708f11584130ee4a0c.zip
kernel_samsung_smdk4412-03e49d40ea3436cae0fe43708f11584130ee4a0c.tar.gz
kernel_samsung_smdk4412-03e49d40ea3436cae0fe43708f11584130ee4a0c.tar.bz2
[PATCH] PCI Hotplug: fix CPCI reference counting bug
Here's a patch that fixes up the pci_dev refcounting in the CPCI code. I've done some testing against it and it seems fine here. Signed-off-by: Scott Murray <scottm@somanetworks.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/cpci_hotplug_core.c')
-rw-r--r--drivers/pci/hotplug/cpci_hotplug_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/cpci_hotplug_core.c b/drivers/pci/hotplug/cpci_hotplug_core.c
index 8132d94..30af105 100644
--- a/drivers/pci/hotplug/cpci_hotplug_core.c
+++ b/drivers/pci/hotplug/cpci_hotplug_core.c
@@ -217,6 +217,8 @@ static void release_slot(struct hotplug_slot *hotplug_slot)
kfree(slot->hotplug_slot->info);
kfree(slot->hotplug_slot->name);
kfree(slot->hotplug_slot);
+ if (slot->dev)
+ pci_dev_put(slot->dev);
kfree(slot);
}