summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPavel Machek (CIP) <pavel@denx.de>2021-04-06 13:54:14 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-18 10:00:03 +0200
commit570b3e4020f2aa7ab6908042e7f3a41ab24ce261 (patch)
tree1bcdf9f26616f278ff982ddf6d817a7fe3b550a2 /include
parentb1e3596416d74ce95cc0b7b38472329a3818f8a9 (diff)
drm/tegra: sor: Do not leak runtime PM reference
[ Upstream commit 73a395c46704304b96bc5e2ee19be31124025c0c ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions