u-boot-brain/drivers/pci
Thierry Reding d94d9aa675 pci: Add boundary check for hose->regions
Make sure that we don't overflow the hose->regions array, otherwise we
would end up overwriting the hose->region_count field and cause mayhem
to ensue. Also print an error message when we'd be overflowing because
it indicates that there aren't enough regions available and the number
needs to be increased.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2019-04-23 17:57:23 -04:00
..
fsl_pci_init.c FSL PCI: Configure PCIe reference ratio 2018-08-08 08:23:48 -07:00
Kconfig pci: pci_mvebu: Add DM_PCI support and move CONFIG_PCI_MVEBU to defconfig 2019-02-05 14:22:38 +01:00
Makefile pci: intel: Add Intel FPGA PCIe controller driver 2018-05-08 09:07:35 -04:00
pci_auto_common.c PCI: autoconfig: Don't allocate 64-bit addresses to 32-bit only resources 2018-05-26 12:46:50 -04:00
pci_auto_old.c PCI: autoconfig: Don't allocate 64-bit addresses to 32-bit only resources 2018-05-26 12:46:50 -04:00
pci_auto.c PCI: autoconfig: Don't allocate 64-bit addresses to 32-bit only resources 2018-05-26 12:46:50 -04:00
pci_common.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_compat.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_ftpci100.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_gt64120.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_indirect.c pci: Don't use pci_indirect when DM is active 2018-05-08 18:50:23 -04:00
pci_internal.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_msc01.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_mvebu.c pci: pci_mvebu: Add comment about missing of_n_addr_cells() call 2019-03-19 09:22:05 +01:00
pci_rom.c video: Allow driver to specify the line length 2018-12-03 19:09:44 +01:00
pci_sandbox.c Remove <inttypes.h> includes and PRI* usages in printf() entirely 2018-09-10 20:48:17 -04:00
pci_sh4.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_sh7751.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_sh7780.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_tegra.c pci: tegra: introduce weak tegra_pcie_board_port_reset() function 2018-05-10 16:34:21 -07:00
pci_x86.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci-aardvark.c Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTR 2018-04-27 14:54:48 -04:00
pci-emul-uclass.c pci: sandbox: emul: Rename priv structure 2018-08-08 12:49:31 +01:00
pci-rcar-gen2.c pci: rmobile: Filter out device 1 and 2 2018-08-28 11:01:52 +02:00
pci-uclass.c pci: Add boundary check for hose->regions 2019-04-23 17:57:23 -04:00
pci.c pci: Don't export pci_hose_config_device() 2019-02-20 15:21:44 +08:00
pcie_dw_mvebu.c pcie: designware: mvebu: fix reset release polarity 2019-02-11 09:39:12 +01:00
pcie_ecam_generic.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pcie_imx.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pcie_intel_fpga.c pci: intel: Add Intel FPGA PCIe controller driver 2018-05-08 09:07:35 -04:00
pcie_layerscape_fixup.c pci: layerscape: Add the dts fixup for EP and RC 2019-01-17 13:17:40 -08:00
pcie_layerscape.c pci: layerscape: Do not scan when PEX work in EP mode 2019-01-17 13:17:33 -08:00
pcie_layerscape.h pci: layerscape: Modify the EP and RC mode judge method 2019-01-17 13:17:28 -08:00
pcie_xilinx.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00