diff options
author | Yong Gan <yong.gan@nxp.com> | 2018-08-24 07:59:20 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:33:30 +0800 |
commit | b9eae51a7a91bad60b931fd533babcbce8d9ab33 (patch) | |
tree | 031842587087448de3b17924eda643cd21611812 /drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c | |
parent | 52555e5d7dc048d79223189c246f3f15fac51f70 (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_os.c')
-rw-r--r-- | drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c index f79d9999e5e7..dcf4daf5bae4 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c @@ -6946,7 +6946,7 @@ gckOS_CreateNativeFence( { struct dma_fence *fence = NULL; struct sync_file *sync = NULL; - int fd; + int fd = -1; struct viv_sync_timeline *timeline; gcsSIGNAL_PTR signal = gcvNULL; gceSTATUS status = gcvSTATUS_OK; |