[Cbe-oss-dev] [PATCH] spufs: hook up spufs_release_mem

Christoph Hellwig hch at lst.de
Tue May 15 23:03:30 EST 2007


Currently spufs_mem_release and the mem file doesn't have any release
method hooked up leading to leaks everytime is used.  The conclusion I
come to from that is that no one is actually using it currently..


Signed-off-by: Christoph Hellwig <hch at lst.de>

Index: linux-2.6.20/arch/powerpc/platforms/cell/spufs/file.c
===================================================================
--- linux-2.6.20.orig/arch/powerpc/platforms/cell/spufs/file.c	2007-05-15 14:16:13.000000000 +0200
+++ linux-2.6.20/arch/powerpc/platforms/cell/spufs/file.c	2007-05-15 14:16:27.000000000 +0200
@@ -217,6 +217,7 @@ unsigned long spufs_get_unmapped_area(st
 
 static const struct file_operations spufs_mem_fops = {
 	.open	 		= spufs_mem_open,
+	.release 		= spufs_mem_release,
 	.read   		= spufs_mem_read,
 	.write   		= spufs_mem_write,
 	.llseek  		= generic_file_llseek,



More information about the cbe-oss-dev mailing list