kernel_samsung_a53x/drivers/pci/controller/dwc
Aleksandr Mishin 8ca4cb8b86 PCI: al: Check IORESOURCE_BUS existence during probe
[ Upstream commit a9927c2cac6e9831361e43a14d91277818154e6a ]

If IORESOURCE_BUS is not provided in Device Tree it will be fabricated in
of_pci_parse_bus_range(), so NULL pointer dereference should not happen
here.

But that's hard to verify, so check for NULL anyway.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Link: https://lore.kernel.org/linux-pci/20240503125705.46055-1-amishin@t-argos.ru
Suggested-by: Bjorn Helgaas <helgaas@kernel.org>
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:58 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-dra7xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-exynos.c PCI: exynos: Don't discard .remove() callback 2024-11-18 11:43:27 +01:00
pci-imx6.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-keystone.c PCI: keystone: Fix race condition when initializing PHYs 2024-11-18 12:12:50 +01:00
pci-layerscape-ep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-layerscape.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-meson.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-al.c PCI: al: Check IORESOURCE_BUS existence during probe 2024-11-23 23:20:58 +01:00
pcie-armada8k.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-artpec6.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-designware-ep.c PCI: dwc: endpoint: Fix advertised resizable BAR size 2024-11-19 09:22:35 +01:00
pcie-designware-host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-designware-plat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-designware.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-designware.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynos-common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynos-dbg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynos-dbg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynos-rc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynos-rc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynosS5E9925-rc-cal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-exynosS5E9925-rc-cal_s5300.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-hisi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-histb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-intel-gw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-kirin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-qcom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-spear13xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-tegra194.c PCI: tegra194: Use FIELD_GET()/FIELD_PREP() with Link Width fields 2024-11-18 11:43:14 +01:00
pcie-uniphier-ep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-uniphier.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00