summaryrefslogtreecommitdiff
path: root/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c
diff options
context:
space:
mode:
authorYong Gan <yong.gan@nxp.com>2018-08-24 07:59:20 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:33:30 +0800
commitb9eae51a7a91bad60b931fd533babcbce8d9ab33 (patch)
tree031842587087448de3b17924eda643cd21611812 /drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c
parent52555e5d7dc048d79223189c246f3f15fac51f70 (diff)
MGS-4166 [#imx-1145] Fix coverity errors
Fix potential Resource leaks and memory illegal access issues. Signed-off-by Yong Gan <yong.gan@ncp.com>
Diffstat (limited to 'drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c')
-rw-r--r--drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c
index 5543d1d36982..d11b6dd15e80 100644
--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c
+++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c
@@ -2102,7 +2102,7 @@ gckGALDEVICE_QueryFrequency(
IN gckGALDEVICE Device
)
{
- gctUINT64 mcStart[gcvCORE_COUNT], shStart[gcvCORE_COUNT];
+ gctUINT64 mcStart[gcvCORE_COUNT] = { 0 }, shStart[gcvCORE_COUNT];
gctUINT32 mcClk[gcvCORE_COUNT], shClk[gcvCORE_COUNT];
gckHARDWARE hardware = gcvNULL;
gceSTATUS status;