summaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pcie-histb.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-04-29 16:07:40 +0800
committerBjorn Helgaas <bhelgaas@google.com>2022-10-05 17:30:55 -0500
commit94f0b955e4ed610e4ee93ee72b88c4415bed685d (patch)
tree880aacdb8810f0b2eaddf3303a056fe4d0f4ff09 /drivers/pci/controller/dwc/pcie-histb.c
parent867ec26c16064b271b1d5fd292a1610ed3a754ec (diff)
downloadlinux-94f0b955e4ed610e4ee93ee72b88c4415bed685d.tar.bz2
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/20220429080740.1294797-1-yangyingliang@huawei.com Fixes: f55fee56a631 ("PCI: qcom-ep: Add Qualcomm PCIe Endpoint controller driver") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-histb.c')
0 files changed, 0 insertions, 0 deletions