summaryrefslogtreecommitdiff
path: root/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c
diff options
context:
space:
mode:
authorXianzhong <xianzhong.li@nxp.com>2016-10-17 15:58:52 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit398b6424427d12f49e8c7f319a3d8b9a7731573a (patch)
tree146aef75ea746d542f61d3c47ad29950a9110e17 /drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c
parent4799d35e5fdaacf9caf8c08193e1cfdee376406a (diff)
MGS-2302-1 [#imx-225] fix the gpu1 hang with independent mode
when the app is killed, the kernel driver will free database from the gpu0. if the app is running on gpu1, its database may be freed by gpu0 unexpectely. need check kernel pointer in record to prevent the incorrect database free. Date: Oct 17, 2016 Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Diffstat (limited to 'drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c')
-rw-r--r--drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c
index 28d017b3526d..77612a9f4d1a 100644
--- a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c
+++ b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel.c
@@ -3222,11 +3222,11 @@ gckKERNEL_AttachProcessEx(
}
else
{
+ /* Clean up the process database. */
+ gckKERNEL_DestroyProcessDB(Kernel, PID);
+
if (Kernel->dbCreated)
{
- /* Clean up the process database. */
- gcmkONERROR(gckKERNEL_DestroyProcessDB(Kernel, PID));
-
/* Save the last know process ID. */
Kernel->db->lastProcessID = PID;
}