From: Sunmi Lee Date: Mon, 2 Jul 2018 05:30:21 +0000 (+0900) Subject: [COMMON] fimc-is2: Fix bugs from prevent - overrun X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c5b26d5b2c0cfb5146b02f17f613982a4b42c514;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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); }