Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=545da94f924d52f80e2bbea99a8652f454889a2b
Commit:     545da94f924d52f80e2bbea99a8652f454889a2b
Parent:     05916eec9f4d4370ef9a6cbb699f637302f6e157
Author:     Benjamin Herrenschmidt <[EMAIL PROTECTED]>
AuthorDate: Sun Jan 28 07:45:53 2007 +1100
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Sun Jan 28 09:57:09 2007 +1100

    [POWERPC] Fix sys_pciconfig_iobase bus matching
    
    A stupid bug has been plaguing the sys_pciconfig_iobase on ppc64. It wasn't
    noticed until recently as it seems to not affect G5s but it's been causing
    problems running X servers on some other machines recently. The bus number
    matching was bogus.
    
    Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/kernel/pci_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c
index 73c59ec..01f18c6 100644
--- a/arch/powerpc/kernel/pci_64.c
+++ b/arch/powerpc/kernel/pci_64.c
@@ -1430,7 +1430,7 @@ long sys_pciconfig_iobase(long which, unsigned long 
in_bus,
 
        for (ln = pci_root_buses.next; ln != &pci_root_buses; ln = ln->next) {
                bus = pci_bus_b(ln);
-               if (in_bus >= bus->number && in_bus < (bus->number + 
bus->subordinate))
+               if (in_bus >= bus->number && in_bus <= bus->subordinate)
                        break;
                bus = NULL;
        }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to