mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
6a3b3e2680
commit
9efb5fe1b8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue