Skip to content

Commit

Permalink
MGS-1851 [#2332] fix the integer id resource leak
Browse files Browse the repository at this point in the history
the original fix (MGS-755) for vg memory leak is incomplete,
further destroy the node handle to free the integer id with vg memory.

Date: May 26, 2016
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
  • Loading branch information
xianzhongli committed May 26, 2016
1 parent 7b3c314 commit 059449a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_vg.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@ gceSTATUS gckVGKERNEL_Dispatch(
gckVIDMEM_HANDLE_Lookup(Kernel, processID,
(gctUINT32)kernelInterface->u.ReleaseVideoMemory.node, &nodeObject));

gckVIDMEM_HANDLE_Dereference(Kernel, processID,(gctUINT32)Interface->u.ReleaseVideoMemory.node);

gckVIDMEM_NODE_Dereference(Kernel, nodeObject);
}

Expand Down

0 comments on commit 059449a

Please sign in to comment.