From 82a25e2ddc3a5ab575a157d8a263a003878ae6ef Mon Sep 17 00:00:00 2001 From: Jeongtae Park Date: Tue, 3 Jul 2018 15:58:13 +0900 Subject: [PATCH] [9610] fimc-is2: fix null pointer dereferences: tmp_format Prevent Defect ID: CID 232755 PR JIRA ID: CPR-32 Change-Id: Iff8a0645595043cd9d62128caf66752d49c47782 Signed-off-by: Jeongtae Park --- .../ischain/fimc-is-v6_10_0/fimc-is-subdev-mcsp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcsp.c b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcsp.c index e981bb46af21..8255e5e5e27a 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcsp.c +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcsp.c @@ -275,10 +275,10 @@ static int fimc_is_ischain_mxp_start(struct fimc_is_device_ischain *device, } else { mdbg_pframe("pixelformat is not found(%c%c%c%c)\n", device, subdev, frame, - (char)((tmp_format->pixelformat >> 0) & 0xFF), - (char)((tmp_format->pixelformat >> 8) & 0xFF), - (char)((tmp_format->pixelformat >> 16) & 0xFF), - (char)((tmp_format->pixelformat >> 24) & 0xFF)); + (char)((node->pixelformat >> 0) & 0xFF), + (char)((node->pixelformat >> 8) & 0xFF), + (char)((node->pixelformat >> 16) & 0xFF), + (char)((node->pixelformat >> 24) & 0xFF)); } } -- 2.20.1