]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
cache_k8_northbridges() overflows beyond allocation
authorBadari Pulavarty <pbadari@gmail.com>
Tue, 17 Apr 2007 19:53:09 +0000 (15:53 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 May 2007 00:05:59 +0000 (17:05 -0700)
cache_k8_northbridges() overflows beyond allocation

cache_k8_northbridges() is storing config values to incorrect locations
(in flush_words) and also its overflowing beyond the allocation, causing
slab verification failures.

Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86_64/kernel/k8.c

index 6416682d33d08b878ed771ea32d0497aedbdb960..bc11b32e8b4d41fb000692825048d1dcd3a0339c 100644 (file)
@@ -61,8 +61,8 @@ int cache_k8_northbridges(void)
        dev = NULL;
        i = 0;
        while ((dev = next_k8_northbridge(dev)) != NULL) {
-               k8_northbridges[i++] = dev;
-               pci_read_config_dword(dev, 0x9c, &flush_words[i]);
+               k8_northbridges[i] = dev;
+               pci_read_config_dword(dev, 0x9c, &flush_words[i++]);
        }
        k8_northbridges[i] = NULL;
        return 0;