From 18eb5d4ca4492e6f269ae2bf4ae693ce9f8f8b8b Mon Sep 17 00:00:00 2001 From: Yinghai Lu Date: Fri, 11 Apr 2008 15:14:52 -0700 Subject: [PATCH] --- yaml --- r: 94821 b: refs/heads/master c: 4cf19463745fad81ef2eed3e4e0038da5fd153f8 h: refs/heads/master i: 94819: b02936dd329e5e1d6dfed52f4cc45088fd1541d1 v: v3 --- [refs] | 2 +- trunk/arch/x86/pci/k8-bus_64.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 31078ee696c3..e6a0b1879da3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6e184f299d696203bc40545b9db216089d88bef7 +refs/heads/master: 4cf19463745fad81ef2eed3e4e0038da5fd153f8 diff --git a/trunk/arch/x86/pci/k8-bus_64.c b/trunk/arch/x86/pci/k8-bus_64.c index 84b2030fc2f0..4e64c58e17a0 100644 --- a/trunk/arch/x86/pci/k8-bus_64.c +++ b/trunk/arch/x86/pci/k8-bus_64.c @@ -69,7 +69,8 @@ void set_pci_bus_resources_arch_default(struct pci_bus *b) int j; struct pci_root_info *info; - if (!pci_root_num) + /* if only one root bus, don't need to anything */ + if (pci_root_num < 2) return; for (i = 0; i < pci_root_num; i++) {