Skip to content

Commit

Permalink
PCIe: portdrv: call pci_disable_device during remove
Browse files Browse the repository at this point in the history
The PCIe port driver calls pci_enable_device() during probe but
never calls pci_disable_device() during remove.

Cc: stable@kernel.org
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
  • Loading branch information
Alex Chiang authored and Matthew Wilcox committed Mar 12, 2009
1 parent 6a958d5 commit d899871
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pci/pcie/portdrv_pci.c
Expand Up @@ -103,6 +103,7 @@ static int __devinit pcie_portdrv_probe (struct pci_dev *dev,
static void pcie_portdrv_remove (struct pci_dev *dev)
{
pcie_port_device_remove(dev);
pci_disable_device(dev);
kfree(pci_get_drvdata(dev));
}

Expand Down

0 comments on commit d899871

Please sign in to comment.