[COMMON] fimc-is2: fix a bug for child group smp processed to close
authorWooyeon Kim <wooy88.kim@samsung.com>
Tue, 3 Jul 2018 09:59:39 +0000 (18:59 +0900)
committerWooyeon Kim <wooy88.kim@samsung.com>
Tue, 3 Jul 2018 10:32:38 +0000 (19:32 +0900)
related Patch review ID : CPR-27

Change-Id: I515c84fe646dc5de615c752b83fb2310b0a68f96
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-groupmgr.c

index 8141ee3a078aeda18eac85186955beb8e39b487d..f195a45ee07d73c59970cb03865dccdcd10b388b 100644 (file)
@@ -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(&gtask_child->smp_resource);