diff options
author | Alex Chiang <achiang@hp.com> | 2009-03-09 14:08:15 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-03-20 13:48:16 -0400 |
commit | 9efb5fe1b80a45130ba659ba755f24534c83301b (patch) | |
tree | 779e383142e46a536fc7a0e1ce97f4e90e5e66d8 | |
parent | 6a3b3e26803fc823058fbb05abb5e0d92a52e1bd (diff) |
PCI: PCIe portdrv: eliminate double kfree in remove path
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>
-rw-r--r-- | drivers/pci/pcie/portdrv_pci.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index a61f4930d676..b924e2463f85 100644 --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c | |||
@@ -94,7 +94,6 @@ static void pcie_portdrv_remove (struct pci_dev *dev) | |||
94 | { | 94 | { |
95 | pcie_port_device_remove(dev); | 95 | pcie_port_device_remove(dev); |
96 | pci_disable_device(dev); | 96 | pci_disable_device(dev); |
97 | kfree(pci_get_drvdata(dev)); | ||
98 | } | 97 | } |
99 | 98 | ||
100 | static int error_detected_iter(struct device *device, void *data) | 99 | static int error_detected_iter(struct device *device, void *data) |