diff options
author | Yuchou Gan <yuchou.gan@nxp.com> | 2018-04-26 18:52:58 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:31:18 +0800 |
commit | 1ba1e9228584ee4f2aa02ce2c24d23f453f02bd0 (patch) | |
tree | 7bd8b02c7bfea8f42cf9ee00a33ce019ede7004f | |
parent | 90126c6de912eee8f04f4010406a4b985ed629fe (diff) |
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<yuchou.gan@nxp.com>
-rw-r--r-- | drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 39197db2ce7b..0bc059c34589 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 gpu3DMinClock_show(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, |