MGS-1678 [#2269] memleak in GPU driver sysfs interface
authorgan <Gan Yuchou>
Fri, 25 Mar 2016 13:24:38 +0000 (21:24 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:51:46 +0000 (14:51 -0500)
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>
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_debugfs.c

index 5a51730..fa54275 100644 (file)
@@ -892,6 +892,7 @@ static const struct file_operations vidmem_operations = {
     .read = seq_read,
     .write = vidmem_write,
     .llseek = seq_lseek,
+    .release = single_release,
 } ;
 
 /*******************************************************************************