Skip to content

Commit

Permalink
PCI: cadence: Add cdns_plat_pcie_probe() missing return
Browse files Browse the repository at this point in the history
commit 27cd7e3 upstream.

When cdns_plat_pcie_probe() succeeds, return success instead of falling
into the error handling code.

Fixes: bd22885 ("PCI: cadence: Refactor driver to use as a core library")
Link: https://lore.kernel.org/r/DM6PR19MB40271B93057D949310F0B0EDA0BF9@DM6PR19MB4027.namprd19.prod.outlook.com
Signed-off-by: Xuliang Zhang <xlzhanga@ambarella.com>
Signed-off-by: Li Chen <lchen@ambarella.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
FirstLoveLife authored and gregkh committed Nov 17, 2021
1 parent a4935ee commit f6c8334
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/pci/controller/cadence/pcie-cadence-plat.c
Expand Up @@ -127,6 +127,8 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
goto err_init;
}

return 0;

err_init:
err_get_sync:
pm_runtime_put_sync(dev);
Expand Down

0 comments on commit f6c8334

Please sign in to comment.