summaryrefslogtreecommitdiff
path: root/drivers/power/acpi_pmc
diff options
context:
space:
mode:
authorAndrew Scull <ascull@google.com>2022-04-03 13:39:10 +0300
committerTom Rini <trini@konsulko.com>2022-04-29 18:11:36 +0300
commit9c2f5ecd43ee8bad9d52497c154088c6a99e3f9d (patch)
treed860a8d335239062d615dfa6e5333d666f2de78e /drivers/power/acpi_pmc
parent3849ca7b2f8363dee751c6918df0aacf64cde3bd (diff)
downloadu-boot-9c2f5ecd43ee8bad9d52497c154088c6a99e3f9d.tar.xz
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>
Diffstat (limited to 'drivers/power/acpi_pmc')
-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 a61eb5bd85..8015031da8 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 {