diff options
| author | Andrew Scull <[email protected]> | 2022-04-03 10:39:10 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-04-29 11:11:36 -0400 |
| commit | 9c2f5ecd43ee8bad9d52497c154088c6a99e3f9d (patch) | |
| tree | d860a8d335239062d615dfa6e5333d666f2de78e | |
| parent | 3849ca7b2f8363dee751c6918df0aacf64cde3bd (diff) | |
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 <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
| -rw-r--r-- | drivers/power/acpi_pmc/pmc_emul.c | 1 |
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 a61eb5bd85c..8015031da85 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 { |
