diff options
author | Qiushi Wu <wu000273@umn.edu> | 2020-06-14 04:56:05 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-09-27 10:54:11 +0200 |
commit | 7dae2aaaf432767ca7aa11fa84643a7c2600dbdd (patch) | |
tree | 50b2c351f141e8028f6f1e26ab5bd99511910182 /drivers/media/platform/exynos4-is/mipi-csis.c | |
parent | 88f50a05f907d96a27a9ce3cc9e8cbb91a6f0f22 (diff) |
media: ti-vpe: Fix a missing check and reference count leak
pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code, causing incorrect ref count if
pm_runtime_put_noidle() is not called in error handling paths.
And also, when the call of function vpe_runtime_get() failed,
we won't call vpe_runtime_put().
Thus call pm_runtime_put_noidle() if pm_runtime_get_sync() fails
inside vpe_runtime_get().
Fixes: 4571912743ac ("[media] v4l: ti-vpe: Add VPE mem to mem driver")
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>
Diffstat (limited to 'drivers/media/platform/exynos4-is/mipi-csis.c')
0 files changed, 0 insertions, 0 deletions