summaryrefslogtreecommitdiff
path: root/drivers/mxc/gpu-viv/hal/os/linux
diff options
context:
space:
mode:
authorYong Gan <yong.gan@nxp.com>2018-10-10 08:37:57 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:34:22 +0800
commit09485f111c5d2d0a2fdc4ae68f5220d383df8537 (patch)
treec7fce1d8ac1ada625e797be6afdc3b0660e7dc20 /drivers/mxc/gpu-viv/hal/os/linux
parent15c2358ef381f76d94689bf1ff4c896a5c846eab (diff)
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). Signed-off-by Yong Gan <yong.gan@nxp.com>
Diffstat (limited to 'drivers/mxc/gpu-viv/hal/os/linux')
-rw-r--r--drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_sync.c1
1 files changed, 0 insertions, 1 deletions
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 5cda578da8ed..37c95ab4a910 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 @@ struct dma_fence * viv_fence_create(struct viv_sync_timeline *timeline,
if (!signal->done) {
signal->fence = (struct dma_fence*)fence;
- dma_fence_get((struct dma_fence*)fence);
}
spin_unlock(&signal->lock);