MGS-3389 [#ccc] fix coverity issue
authorYuchou Gan <yuchou.gan@nxp.com>
Wed, 8 Nov 2017 09:54:52 +0000 (17:54 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:39:07 +0000 (15:39 -0500)
fix coverity issue

Date: Nov 7, 2017
Signed-off-by Yuchou Gan <yuchou.gan@nxp.com>

drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6.c

index 9379c16..b96d6db 100644 (file)
@@ -425,8 +425,8 @@ static struct imx_priv imxPriv;
 static ssize_t show_gpuMode(struct device_driver *dev, char *buf)
 {
     struct imx_priv *priv = &imxPriv;
-    char buffer[512];
-    char mode[16];
+    char buffer[512] = {0};
+    char mode[16] = {0};
     int i;
 
     unsigned long core_freq = 0;