]> git.baikalelectronics.ru Git - kernel.git/commit
media: exynos4-is: Fix several reference count leaks due to pm_runtime_get_sync
authorQiushi Wu <wu000273@umn.edu>
Sun, 14 Jun 2020 03:18:29 +0000 (05:18 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 27 Sep 2020 08:55:30 +0000 (10:55 +0200)
commit376dcbc50f1361368d7cca57c22a832e0553b2f0
tree2e790b7d0d64af15b17d019061f6b64550b7b63a
parent0702d864f8d31b2a8515f06e0861e707b1d8d1bb
media: exynos4-is: Fix several reference count leaks due to pm_runtime_get_sync

On calling pm_runtime_get_sync() the reference count of the device
is incremented. In case of failure, decrement the
reference count before returning the error.

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