aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pci-keystone.c
diff options
context:
space:
mode:
authorAleksandr Mishin <[email protected]>2024-05-03 12:57:05 +0000
committerBjorn Helgaas <[email protected]>2024-05-28 16:14:24 +0000
commita9927c2cac6e9831361e43a14d91277818154e6a (patch)
treeb2edae1ca06f461c7b4b333ecec7e866cc3bf448 /drivers/pci/controller/dwc/pci-keystone.c
parentLinux 6.10-rc1 (diff)
downloadkernel-a9927c2cac6e9831361e43a14d91277818154e6a.tar.gz
kernel-a9927c2cac6e9831361e43a14d91277818154e6a.zip
PCI: al: Check IORESOURCE_BUS existence during probe
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/[email protected] Suggested-by: Bjorn Helgaas <[email protected]> Signed-off-by: Aleksandr Mishin <[email protected]> Signed-off-by: Krzysztof WilczyƄski <[email protected]> [bhelgaas: commit log] Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-keystone.c')
0 files changed, 0 insertions, 0 deletions