From 20d26d9f1248f03f3cec90045f4fb5fc4657fc58 Mon Sep 17 00:00:00 2001 From: Yuchou Gan Date: Thu, 26 Apr 2018 18:52:58 +0800 Subject: [PATCH] MGS-3846 [#imx-1015] fix coverity high impact issue Using uninitialized value minf when calling snprintf. Initilize it to fix. Date: 25th Apr, 2018 Signed-off-by: Yuchou Gan --- .../linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c | 1 + 1 file changed, 1 insertion(+) 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 5e75c6c6a2d8..cad3e870967b 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 @@ -324,6 +324,7 @@ static ssize_t show_gpu3DMinClock(struct device_driver *dev, char *buf) galDevice = platform_get_drvdata(pdevice); + minf = 0; if (galDevice->kernels[gcvCORE_MAJOR]) { gckHARDWARE_GetFscaleValue(galDevice->kernels[gcvCORE_MAJOR]->hardware, -- 2.17.1