Skip to content

Commit c2615d6

Browse files
dinghaoliuLorenzo Pieralisi
authored andcommitted
PCI: dwc: pci-dra7xx: Fix runtime PM imbalance on error
pm_runtime_get_sync() increments the runtime PM usage counter even it returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dinghao Liu <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]>
1 parent b3a9e3b commit c2615d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/pci/controller/dwc/pci-dra7xx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,9 +998,8 @@ static int __init dra7xx_pcie_probe(struct platform_device *pdev)
998998
return 0;
999999

10001000
err_gpio:
1001-
pm_runtime_put(dev);
1002-
10031001
err_get_sync:
1002+
pm_runtime_put(dev);
10041003
pm_runtime_disable(dev);
10051004
dra7xx_pcie_disable_phy(dra7xx);
10061005

0 commit comments

Comments
 (0)