aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2006-05-11 22:23:39 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-19 17:13:23 -0400
commit6e33706b191ff8687f103a86de842b690fd8fb9d (patch)
treec41ba3730a875f650d53feeaef8d853a5a1a5dd7 /drivers/pci/hotplug
parent56bfada3e1a25c0da6f4590a4b04c67ec10910c2 (diff)
[PATCH] pciehp: Add missing pci_dev_put
The PCIEHP driver leaks reference counter of pci_dev structures. This patch adds missing pci_dev_put() calls to PCIEHP driver. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Cc: Kristen Accardi <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r--drivers/pci/hotplug/pciehp_pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c
index 922b1831c680..854aaea09e4d 100644
--- a/drivers/pci/hotplug/pciehp_pci.c
+++ b/drivers/pci/hotplug/pciehp_pci.c
@@ -225,6 +225,7 @@ int pciehp_configure_device(struct slot *p_slot)
225 if ((dev->class >> 16) == PCI_BASE_CLASS_DISPLAY) { 225 if ((dev->class >> 16) == PCI_BASE_CLASS_DISPLAY) {
226 err("Cannot hot-add display device %s\n", 226 err("Cannot hot-add display device %s\n",
227 pci_name(dev)); 227 pci_name(dev));
228 pci_dev_put(dev);
228 continue; 229 continue;
229 } 230 }
230 if ((dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) || 231 if ((dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) ||
@@ -232,6 +233,7 @@ int pciehp_configure_device(struct slot *p_slot)
232 pciehp_add_bridge(dev); 233 pciehp_add_bridge(dev);
233 } 234 }
234 program_fw_provided_values(dev); 235 program_fw_provided_values(dev);
236 pci_dev_put(dev);
235 } 237 }
236 238
237 pci_bus_assign_resources(parent); 239 pci_bus_assign_resources(parent);