diff mbox

BUG_ON(root->parent) in pcie_update_aspm_capable()

Message ID 4AF38909.3040904@jp.fujitsu.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Kenji Kaneshige Nov. 6, 2009, 2:25 a.m. UTC
None
diff mbox

Patch

Index: 20091105/drivers/pci/pcie/aspm.c
===================================================================
--- 20091105.orig/drivers/pci/pcie/aspm.c
+++ 20091105/drivers/pci/pcie/aspm.c
@@ -656,8 +656,10 @@  void pcie_aspm_exit_link_state(struct pc
 	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);