diff options
author | Yuchou Gan <yuchou.gan@nxp.com> | 2017-11-08 17:54:52 +0800 |
---|---|---|
committer | Frank Li <Frank.Li@nxp.com> | 2017-11-09 12:28:54 -0600 |
commit | 8cb5c6ea655dfec04b4967d89fa62c02191e0cac (patch) | |
tree | c1de36ccee7a59a4ffa5e71c43fcb1aaf7502117 | |
parent | 3f6fc2661342308e41cf822ea5af316d8d7630c9 (diff) |
MGS-3389 [#ccc] fix coverity issue
fix coverity issue
Date: Nov 7, 2017
Signed-off-by Yuchou Gan <yuchou.gan@nxp.com>
-rw-r--r-- | drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6.c index 9379c1669deb..b96d6db43df1 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6.c @@ -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; |