summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYongzhi Liu <lyz_cs@pku.edu.cn>2022-01-24 10:20:35 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-13 21:59:02 +0300
commitff13c90d7f7ab606b37be6d15140d19013d6736c (patch)
tree37e4fedb9031dba4eb68e85616facfdfcf1b5379 /include
parent35380262304ff5fc9432c0d9d6793d5d39634cc6 (diff)
downloadlinux-ff13c90d7f7ab606b37be6d15140d19013d6736c.tar.xz
drm/bridge: Add missing pm_runtime_put_sync
[ Upstream commit 46f47807738441e354873546dde0b000106c068a ] pm_runtime_get_sync() will increase the rumtime PM counter even when 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. Besides, a matching decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Yongzhi Liu <lyz_cs@pku.edu.cn> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Robert Foss <robert.foss@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/1643008835-73961-1-git-send-email-lyz_cs@pku.edu.cn Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions