summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPavel Machek (CIP) <pavel@denx.de>2021-04-06 14:54:14 +0300
committerThierry Reding <treding@nvidia.com>2021-05-17 13:31:05 +0300
commit73a395c46704304b96bc5e2ee19be31124025c0c (patch)
tree12ca6f8f9a5397487ee9e8fff732e855cbf3c1eb /tools/perf/scripts/python
parent6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff)
downloadlinux-73a395c46704304b96bc5e2ee19be31124025c0c.tar.xz
drm/tegra: sor: Do not leak runtime PM reference
It's theoretically possible for the runtime PM reference to leak if the code fails anywhere between the pm_runtime_resume_and_get() and pm_runtime_put() calls, so make sure to release the runtime PM reference in that case. Practically this will never happen because none of the functions will fail on Tegra, but it's better for the code to be pedantic in case these assumptions will ever become wrong. Signed-off-by: Pavel Machek (CIP) <pavel@denx.de> [treding@nvidia.com: add commit message] Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions