From 622db19470530f8ac08499c35802b363b9e97744 Mon Sep 17 00:00:00 2001 From: Yuchou Gan Date: Tue, 27 Feb 2018 23:50:16 +0800 Subject: [PATCH] MGS-3703 gpu-viv: fix coverity issue 1477266 fix coverity high impact issue for 1477266 Signed-off-by: Yuchou Gan --- .../kernel/platform/freescale/gc_hal_kernel_platform_imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c index 0a8bf3e79c35..5e75c6c6a2d8 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c @@ -424,7 +424,7 @@ static ssize_t show_gpuMode(struct device_driver *dev, char *buf) { struct imx_priv *priv = &imxPriv; char buffer[512]; - char mode[16]; + char mode[16] = "undefined\n"; int i; unsigned long core_freq = 0; -- 2.17.1