From: Andrew Scull Date: Sun, 3 Apr 2022 10:39:10 +0000 (+0000) Subject: x86: sandbox: Add missing PCI bar to barinfo X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=9c2f5ecd43ee8bad9d52497c154088c6a99e3f9d;p=u-boot.git 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 Cc: Simon Glass Cc: Bin Meng Reviewed-by: Simon Glass --- 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 {