mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
x86: sandbox: Add missing PCI bar to barinfo
There are expecte to be bars 0 through 5, but the last of these was missing leading to an read beyond the buffer. Add the missing element with zero values. Signed-off-by: Andrew Scull <ascull@google.com> Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
3849ca7b2f
commit
9c2f5ecd43
@ -37,6 +37,7 @@ static struct pci_bar {
|
|||||||
{ 0, 0 },
|
{ 0, 0 },
|
||||||
{ 0, 0 },
|
{ 0, 0 },
|
||||||
{ PCI_BASE_ADDRESS_SPACE_IO, 256 },
|
{ PCI_BASE_ADDRESS_SPACE_IO, 256 },
|
||||||
|
{ 0, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
struct pmc_emul_priv {
|
struct pmc_emul_priv {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user