From: Jeongtae Park Date: Tue, 3 Jul 2018 06:58:13 +0000 (+0900) Subject: [9610] fimc-is2: fix null pointer dereferences: tmp_format X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=82a25e2ddc3a5ab575a157d8a263a003878ae6ef;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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)); } }