Skip to content
Commit 73a395c4 authored by Pavel Machek (CIP)'s avatar Pavel Machek (CIP) Committed by Thierry Reding
Browse files

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: default avatarPavel Machek (CIP) <pavel@denx.de>
[treding@nvidia.com: add commit message]
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 6efb943b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment