diff options
author | gan <Gan Yuchou> | 2016-03-25 21:24:38 +0800 |
---|---|---|
committer | Xianzhong <xianzhong.li@nxp.com> | 2016-03-25 13:54:21 +0800 |
commit | bf8499286426bd48f00e83a7e794b2309da502bc (patch) | |
tree | c23a4fd397247136a646a256c3654c6cb1835e90 /drivers/mxc | |
parent | 023214b916480508e3b70fbbc3c5cd12976aa7be (diff) |
MGS-1678 [#2269] memleak in GPU driver sysfs interface
Add missing .release callback in file_operations of vidmem_operations in order to release the allocated memory.
Date: Mar 18, 2016
Signed-off-by: Yuchou Gan <yuchou.gan@nxp.com>
Diffstat (limited to 'drivers/mxc')
-rw-r--r-- | drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_debugfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_debugfs.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_debugfs.c index 5a5173019152..fa542753e48b 100644 --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_debugfs.c +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_debugfs.c @@ -892,6 +892,7 @@ static const struct file_operations vidmem_operations = { .read = seq_read, .write = vidmem_write, .llseek = seq_lseek, + .release = single_release, } ; /******************************************************************************* |