[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH] pseries: Fix array overrun bug in PC
From: |
andrzej zaborowski |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH] pseries: Fix array overrun bug in PCI code |
Date: |
Mon, 5 Dec 2011 21:24:24 +0100 |
On 29 November 2011 08:41, David Gibson <address@hidden> wrote:
> 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
Now applied. Indeed it would probably have been better done before the release.
Cheers
- Re: [Qemu-ppc] [Qemu-devel] [PATCH] pseries: Fix array overrun bug in PCI code,
andrzej zaborowski <=