MGS-4285 [#imx-1211] gl compositor stress test failed with out of memory
No need to add extra ref count for the dma fence in the API viv_fence_create.
Incrence the ref-count in dma_fence_init and sync_file_create
decrease the ref-count in gckOS_Signal and close(fd).
Bug: 120292899
Test: check memory leak
Signed-off-by Yong Gan <yong.gan@nxp.com>
Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
Change-Id: I32ad043511ccbb18fa0639b4afd7389b390c580c
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_sync.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_sync.c
index 95f3e46..239ca13 100644
--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_sync.c
+++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_sync.c
@@ -349,7 +349,6 @@
if (!signal->done) {
signal->fence = (struct fence*)fence;
- fence_get((struct fence*)fence);
}
spin_unlock(&signal->lock);