[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH] pseries: Fix array overrun bug in PCI code
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH] pseries: Fix array overrun bug in PCI code |
Date: |
Tue, 29 Nov 2011 18:41:10 +1100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Nov 29, 2011 at 05:21:39PM +1100, David Gibson wrote:
> 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 <address@hidden>
As a bugfix for a bad memory access, this is definitely for 1.0
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson