]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: fimc-capture: Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Thu, 21 May 2020 10:22:04 +0000 (12:22 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 23 Jun 2020 11:18:44 +0000 (13:18 +0200)
commite40a8770fd147e7c0d5bd8c327d88090480242f2
treea1a1b1ceb20a85da6ab3b1fe0e0b7694c08f7b83
parent157282a5c6273976b31cf4ba4b1c46663f6519d1
media: fimc-capture: Fix runtime PM imbalance on error

pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code. Thus a pairing decrement is needed on
the error handling path to keep the counter balanced.

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>
drivers/media/platform/exynos4-is/fimc-capture.c