]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: venus: venc: Fix runtime PM imbalance in venc_open
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sun, 24 May 2020 04:31:32 +0000 (06:31 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 4 Jul 2020 10:26:09 +0000 (12:26 +0200)
commit831b8755fd2f60cf00cbf854c2a2eccb03f2060b
tree3f09342d7cb320feae41bce9b20aa8e9473908ec
parente0eb34810113dbbf1ace57440cf48d514312a373
media: venus: venc: Fix runtime PM imbalance in venc_open

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: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/venc.c