aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Scull <ascull@google.com>2022-04-03 10:39:10 +0000
committerTom Rini <trini@konsulko.com>2022-04-29 11:11:36 -0400
commit9c2f5ecd43ee8bad9d52497c154088c6a99e3f9d (patch)
treed860a8d335239062d615dfa6e5333d666f2de78e
parent3849ca7b2f8363dee751c6918df0aacf64cde3bd (diff)
downloadu-boot-9c2f5ecd43ee8bad9d52497c154088c6a99e3f9d.zip
u-boot-9c2f5ecd43ee8bad9d52497c154088c6a99e3f9d.tar.gz
u-boot-9c2f5ecd43ee8bad9d52497c154088c6a99e3f9d.tar.bz2
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>
-rw-r--r--drivers/power/acpi_pmc/pmc_emul.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/acpi_pmc/pmc_emul.c b/drivers/power/acpi_pmc/pmc_emul.c
index a61eb5b..8015031 100644
--- a/drivers/power/acpi_pmc/pmc_emul.c
+++ b/drivers/power/acpi_pmc/pmc_emul.c
@@ -37,6 +37,7 @@ static struct pci_bar {
{ 0, 0 },
{ 0, 0 },
{ PCI_BASE_ADDRESS_SPACE_IO, 256 },
+ { 0, 0 },
};
struct pmc_emul_priv {