aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pci-layerscape.c
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-04-29 08:07:40 +0000
committerBjorn Helgaas <[email protected]>2022-10-05 22:30:55 +0000
commit94f0b955e4ed610e4ee93ee72b88c4415bed685d (patch)
tree880aacdb8810f0b2eaddf3303a056fe4d0f4ff09 /drivers/pci/controller/dwc/pci-layerscape.c
parentPCI: qcom-ep: Add support for SM8450 SoC (diff)
downloadkernel-94f0b955e4ed610e4ee93ee72b88c4415bed685d.tar.gz
kernel-94f0b955e4ed610e4ee93ee72b88c4415bed685d.zip
PCI: qcom-ep: Check platform_get_resource_byname() return value
If platform_get_resource_byname() fails, 'mmio_res' will be set to NULL pointer, which causes a NULL pointer dereference when it is used in qcom_pcie_perst_deassert(). Check the return value to prevent it. Link: https://lore.kernel.org/r/[email protected] Fixes: f55fee56a631 ("PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver") Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Andrew Halaney <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-layerscape.c')
0 files changed, 0 insertions, 0 deletions