From c5b26d5b2c0cfb5146b02f17f613982a4b42c514 Mon Sep 17 00:00:00 2001 From: Sunmi Lee Date: Mon, 2 Jul 2018 14:30:21 +0900 Subject: [PATCH] [COMMON] fimc-is2: Fix bugs from prevent - overrun Prevent ID: 233146, 233147, 233162, 233167, 233207 PR JIRA ID: CPR-24 Change-Id: I167e84ba82a6195836ec0864074925be9246e0d5 Signed-off-by: Sunmi Lee --- .../exynos/fimc-is2/interface/fimc-is-interface-ischain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/exynos/fimc-is2/interface/fimc-is-interface-ischain.c b/drivers/media/platform/exynos/fimc-is2/interface/fimc-is-interface-ischain.c index e650287abada..24d278e17d9e 100644 --- a/drivers/media/platform/exynos/fimc-is2/interface/fimc-is-interface-ischain.c +++ b/drivers/media/platform/exynos/fimc-is2/interface/fimc-is-interface-ischain.c @@ -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); } -- 2.20.1