]> git.baikalelectronics.ru Git - kernel.git/commit
media: camss: csid: Fix runtime PM imbalance in csid_set_power
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sat, 23 May 2020 07:36:39 +0000 (09:36 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 23 Jun 2020 11:19:43 +0000 (13:19 +0200)
commitcf7b1c794d2f2362610143375b4156111e35aed5
treee19bbacfa6d27ff1877f2294c489a69c053fdde8
parent90361693ad8d13a4311fc671903dcedd6ec06940
media: camss: csid: Fix runtime PM imbalance in csid_set_power

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/qcom/camss/camss-csid.c