PCI: pciehp: fix typo in pciehp_probe
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Mon, 5 Oct 2009 08:43:29 +0000 (17:43 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 4 Nov 2009 17:02:13 +0000 (09:02 -0800)
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>
drivers/pci/hotplug/pciehp_core.c

index d19f875..e1b29a5 100644 (file)
@@ -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 */