TencentOS-kernel/drivers/media/platform/sti
Dinghao Liu 86957fe7ab media: platform: sti: Fix runtime PM imbalance in regs_show
[ Upstream commit 69306a947b3ae21e0d1cbfc9508f00fec86c7297 ]

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.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-20 16:07:30 +08:00
..
bdisp media: platform: sti: Fix runtime PM imbalance in regs_show 2021-05-20 16:07:30 +08:00
c8sectpfe Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cec Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
delta media: st-delta: Fix reference count leak in delta_run_work 2021-03-16 16:39:12 +08:00
hva media: platform: sti: hva: Fix runtime PM imbalance on error 2021-03-16 16:39:14 +08:00