summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgan <Gan Yuchou>2016-03-25 21:24:38 +0800
committerXianzhong <xianzhong.li@nxp.com>2016-03-25 13:56:21 +0800
commitd410e45243d2597fe0e192b3e2c482b92fdd3050 (patch)
tree08a95628471a9dfca462604708fc97b11b0315c9
parent160bf920d0acd7d8f88989ac1dfac568f7a48b60 (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> (cherry picked from commit bf8499286426bd48f00e83a7e794b2309da502bc)
-rw-r--r--drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_debugfs.c1
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,
} ;
/*******************************************************************************