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>
This commit is contained in:
parent
1d00e832f0
commit
6f29e35e2d
|
@ -61,8 +61,8 @@ int cache_k8_northbridges(void)
|
||||||
dev = NULL;
|
dev = NULL;
|
||||||
i = 0;
|
i = 0;
|
||||||
while ((dev = next_k8_northbridge(dev)) != NULL) {
|
while ((dev = next_k8_northbridge(dev)) != NULL) {
|
||||||
k8_northbridges[i++] = dev;
|
k8_northbridges[i] = dev;
|
||||||
pci_read_config_dword(dev, 0x9c, &flush_words[i]);
|
pci_read_config_dword(dev, 0x9c, &flush_words[i++]);
|
||||||
}
|
}
|
||||||
k8_northbridges[i] = NULL;
|
k8_northbridges[i] = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue