[9610] fimc-is2: fix null pointer dereferences: tmp_format
authorJeongtae Park <jtp.park@samsung.com>
Tue, 3 Jul 2018 06:58:13 +0000 (15:58 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:05:44 +0000 (17:05 +0900)
Prevent Defect ID: CID 232755
PR JIRA ID: CPR-32

Change-Id: Iff8a0645595043cd9d62128caf66752d49c47782
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-subdev-mcsp.c

index e981bb46af21bf295b854e9ed7d12111e9426c5d..8255e5e5e27a30e9e6e0078861ebf66d8d1c3794 100644 (file)
@@ -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));
                }
        }