From: Wooyeon Kim Date: Tue, 3 Jul 2018 09:59:39 +0000 (+0900) Subject: [COMMON] fimc-is2: fix a bug for child group smp processed to close X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d03f8ada1b880efd93dd108b9d0524de4ba67a61;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: fix a bug for child group smp processed to close related Patch review ID : CPR-27 Change-Id: I515c84fe646dc5de615c752b83fb2310b0a68f96 Signed-off-by: Wooyeon Kim --- diff --git a/drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c b/drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c index 8141ee3a078a..f195a45ee07d 100644 --- a/drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c +++ b/drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c @@ -3228,6 +3228,9 @@ p_err_ignore: if (test_bit(FIMC_IS_GROUP_OTF_INPUT, &group->state)) break; + if (!test_bit(FIMC_IS_GROUP_OPEN, &child->state)) + break; + gtask_child = &groupmgr->gtask[child->id]; if (try_gdown[child->id]) up(>ask_child->smp_resource);