summaryrefslogtreecommitdiffstats
path: root/arch/x86_64
diff options
context:
space:
mode:
authorBadari Pulavarty <pbadari@gmail.com>2007-04-13 17:13:42 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-04-17 03:09:18 +0200
commit6f29e35e2d4cdbc3e8785982314e54ec5df4ad37 (patch)
tree60b1e8cba4f69a5a1e24fa32cfde38f944f986b3 /arch/x86_64
parentMerge master.kernel.org:/home/rmk/linux-2.6-arm (diff)
downloadlinux-6f29e35e2d4cdbc3e8785982314e54ec5df4ad37.tar.xz
linux-6f29e35e2d4cdbc3e8785982314e54ec5df4ad37.zip
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>
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/kernel/k8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/kernel/k8.c b/arch/x86_64/kernel/k8.c
index 6416682d33d0..bc11b32e8b4d 100644
--- a/arch/x86_64/kernel/k8.c
+++ b/arch/x86_64/kernel/k8.c
@@ -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;