[COMMON] fimc-is2: Fix bugs from prevent - overrun
authorSunmi Lee <carrotsm.lee@samsung.com>
Mon, 2 Jul 2018 05:30:21 +0000 (14:30 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:05:41 +0000 (17:05 +0900)
Prevent ID: 233146, 233147, 233162, 233167, 233207
PR JIRA ID: CPR-24

Change-Id: I167e84ba82a6195836ec0864074925be9246e0d5
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/interface/fimc-is-interface-ischain.c

index e650287abada466a7d71ff5fa38410c9ecda61f5..24d278e17d9ebf3ad9ce57945ca03dabbbf9adbe 100644 (file)
@@ -3066,6 +3066,8 @@ int fimc_is_interface_open(struct fimc_is_interface *this)
                this->processing[i] = IS_IF_PROCESSING_INIT;
                atomic_set(&this->shot_check[i], 0);
                atomic_set(&this->shot_timeout[i], 0);
+       }
+       for (i = 0; i < FIMC_IS_SENSOR_COUNT; i++) {
                atomic_set(&this->sensor_check[i], 0);
                atomic_set(&this->sensor_timeout[i], 0);
        }