commit | aaffa0126a111d65f4028c503c76192d4cc93277 | [log] [tgz] |
---|---|---|
author | Qiushi Wu <wu000273@umn.edu> | Sun Jun 14 00:30:08 2020 +0200 |
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | Sun Sep 27 10:51:57 2020 +0200 |
tree | 4ec96616a41e7789824347443353ba625ab13ce3 | |
parent | 98fae901c8883640202802174a4bd70a1b9118bd [diff] |
media: rcar-vin: Fix a reference count leak. pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code. Thus call pm_runtime_put_noidle() if pm_runtime_get_sync() fails. Fixes: 90dedce9bc54 ("media: rcar-vin: add function to manipulate Gen3 chsel value") Signed-off-by: Qiushi Wu <wu000273@umn.edu> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>