summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2009-10-05 10:43:29 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-11-04 18:02:13 +0100
commit65b947bc5f32d8d4fe1f925a6146a4088d5466f3 (patch)
tree38ab3417540aeb18eea8df4c89f7fdc6aeda4c6e /drivers
parentPCI: pciehp: return error on read/write failure (diff)
downloadlinux-65b947bc5f32d8d4fe1f925a6146a4088d5466f3.tar.xz
linux-65b947bc5f32d8d4fe1f925a6146a4088d5466f3.zip
PCI: pciehp: fix typo in pciehp_probe
Fix typo that might cause memory leak in pciehp_probe(). Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/hotplug/pciehp_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c
index d19f87594df4..e1b29a59032b 100644
--- a/drivers/pci/hotplug/pciehp_core.c
+++ b/drivers/pci/hotplug/pciehp_core.c
@@ -285,7 +285,7 @@ static int pciehp_probe(struct pcie_device *dev)
rc = pcie_init_notification(ctrl);
if (rc) {
ctrl_err(ctrl, "Notification initialization failed\n");
- goto err_out_release_ctlr;
+ goto err_out_free_ctrl_slot;
}
/* Check if slot is occupied */