diff options
author | Dinghao Liu <[email protected]> | 2021-04-08 15:26:58 +0800 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2021-04-08 18:10:35 +0100 |
commit | 5859c926d1f052ee61b5815b14658875c14f6243 (patch) | |
tree | 490e0ce687f89d64a10fc59237f005157ecb020e /drivers/pci/controller/dwc/pci-keystone.c | |
parent | 10739e2a5e83ecac6a7d2422369c5fe8a1a72b04 (diff) |
PCI: tegra: Fix runtime PM imbalance in pex_ep_event_pex_rst_deassert()
pm_runtime_get_sync() will increase the runtime PM counter
even it returns an error. Thus a pairing decrement is needed
to prevent refcount leak. Fix this by replacing this API with
pm_runtime_resume_and_get(), which will not change the runtime
PM counter on error.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dinghao Liu <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-keystone.c')
0 files changed, 0 insertions, 0 deletions