PCI: PCIe portdrv: eliminate double kfree in remove path
authorAlex Chiang <achiang@hp.com>
Mon, 9 Mar 2009 18:08:15 +0000 (12:08 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 20 Mar 2009 17:48:16 +0000 (10:48 -0700)
Commit 55633af3 (PCIe portdrv: Use driver data to simplify code)
added a kfree of the driver private data in pcie_port_device_remove
but forgot to remove the old kfree from pcie_portdrv_remove.

Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pcie/portdrv_pci.c

index a61f4930d6761aef08fef98d9dab0d76086ed637..b924e2463f85e0dd7f8f8e313071e9340b579048 100644 (file)
@@ -94,7 +94,6 @@ static void pcie_portdrv_remove (struct pci_dev *dev)
 {
        pcie_port_device_remove(dev);
        pci_disable_device(dev);
-       kfree(pci_get_drvdata(dev));
 }
 
 static int error_detected_iter(struct device *device, void *data)