projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a958d5
)
PCIe: portdrv: call pci_disable_device during remove
author
Alex Chiang
<achiang@hp.com>
Sun, 8 Mar 2009 02:35:47 +0000
(19:35 -0700)
committer
Matthew Wilcox
<willy@linux.intel.com>
Thu, 12 Mar 2009 19:42:35 +0000
(15:42 -0400)
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>
drivers/pci/pcie/portdrv_pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/pcie/portdrv_pci.c
b/drivers/pci/pcie/portdrv_pci.c
index 248b4db915526e5819c7050737f4467456aeda9f..5ea566e20b375410ed2cc5b19d30d8eec8992fd8 100644
(file)
--- a/
drivers/pci/pcie/portdrv_pci.c
+++ b/
drivers/pci/pcie/portdrv_pci.c
@@
-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));
}