From d03f8ada1b880efd93dd108b9d0524de4ba67a61 Mon Sep 17 00:00:00 2001 From: Wooyeon Kim Date: Tue, 3 Jul 2018 18:59:39 +0900 Subject: [PATCH] [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 --- drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.20.1