diff options
author | 2021-04-08 15:26:58 +0800 | |
---|---|---|
committer | 2021-04-08 18:10:35 +0100 | |
commit | 5859c926d1f052ee61b5815b14658875c14f6243 (patch) | |
tree | 490e0ce687f89d64a10fc59237f005157ecb020e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | PCI: tegra: Fix typo for PCIe endpoint mode in Tegra194 (diff) | |
download | wireguard-linux-5859c926d1f052ee61b5815b14658875c14f6243.tar.xz wireguard-linux-5859c926d1f052ee61b5815b14658875c14f6243.zip |
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/20210408072700.15791-1-dinghao.liu@zju.edu.cn
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions