« Previous | Next » 

Revision 81584fd5

ID81584fd50deb3c324cafc854a946dbb6b83c2fc6

Added by David Gibson over 12 years ago

pseries: Fix array overrun bug in PCI code

spapr_populate_pci_devices() containd a loop with PCI_NUM_REGIONS (7)
iterations. However this overruns the 'bars' global array, which only has
6 elements. In fact we only want to run this loop for things listed in the
bars array, so this patch corrects the loop bounds to reflect that.

Signed-off-by: David Gibson <>
Signed-off-by: Andrzej Zaborowski <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences