Skip to content

Commit

Permalink
cache_k8_northbridges() overflows beyond allocation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Badari Pulavarty authored and Linus Torvalds committed Apr 17, 2007
1 parent 1d00e83 commit 6f29e35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86_64/kernel/k8.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6f29e35

Please sign in to comment.