From: Kishon Vijay Abraham I Date: Tue, 21 Jan 2020 11:57:34 +0000 (+0530) Subject: PCI: keystone: Fix error handling when "num-viewport" DT property is not populated X-Git-Tag: v5.15~4578^2~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0de922af53eede340986a2d05b6cd4b6d6efa43;p=platform%2Fkernel%2Flinux-starfive.git PCI: keystone: Fix error handling when "num-viewport" DT property is not populated Fix error handling when "num-viewport" DT property is not populated. Fixes: 23284ad677a9 ("PCI: keystone: Add support for PCIe EP in AM654x Platforms") Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Lorenzo Pieralisi Cc: stable@vger.kernel.org # v5.2+ --- diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c index ea8e7eb..c8c702c 100644 --- a/drivers/pci/controller/dwc/pci-keystone.c +++ b/drivers/pci/controller/dwc/pci-keystone.c @@ -1354,7 +1354,7 @@ static int __init ks_pcie_probe(struct platform_device *pdev) ret = of_property_read_u32(np, "num-viewport", &num_viewport); if (ret < 0) { dev_err(dev, "unable to read *num-viewport* property\n"); - return ret; + goto err_get_sync; } /*