summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-11-11 20:34:14 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-11-11 20:34:14 +0100
commit55871bdd03bf577c5c8fc65498ae24b7c148e1eb (patch)
tree4e5e0a751e3229835200b4be69f6c71f94c31ece /drivers
parentMerge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/po... (diff)
parentx86/PCI: Adjust GFP mask handling for coherent allocations (diff)
downloadlinux-55871bdd03bf577c5c8fc65498ae24b7c148e1eb.tar.xz
linux-55871bdd03bf577c5c8fc65498ae24b7c148e1eb.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6: x86/PCI: Adjust GFP mask handling for coherent allocations PCI ASPM: fix oops on root port removal
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pcie/aspm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
index 745402e8e498..5b7056cec00c 100644
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@ -656,8 +656,10 @@ void pcie_aspm_exit_link_state(struct pci_dev *pdev)
free_link_state(link);
/* Recheck latencies and configure upstream links */
- pcie_update_aspm_capable(root);
- pcie_config_aspm_path(parent_link);
+ if (parent_link) {
+ pcie_update_aspm_capable(root);
+ pcie_config_aspm_path(parent_link);
+ }
out:
mutex_unlock(&aspm_lock);
up_read(&pci_bus_sem);