diff options
author | Noguchi, Masato <Masato.Noguchi@jp.sony.com> | 2006-10-10 04:27:29 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-10-16 01:52:14 -0400 |
commit | 654e4aee495bec1e4fc71ba1af25735da7cadc15 (patch) | |
tree | 3180114d746fac168713618809a1bface14c5063 /arch/powerpc | |
parent | e5267b4b376cfbdc4518abcc68d5a7fffb505638 (diff) |
[POWERPC] spufs: fix support for read/write on cntl
This fixes a memory leak introduced by "spufs: add support
for read/write oncntl", which was missing a call to simple_attr_close.
Signed-off-by: Masato Noguchi <Masato.Noguchi@jp.sony.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index e0d730045260..0de8e114e6b6 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c | |||
@@ -246,6 +246,7 @@ static int spufs_cntl_open(struct inode *inode, struct file *file) | |||
246 | 246 | ||
247 | static struct file_operations spufs_cntl_fops = { | 247 | static struct file_operations spufs_cntl_fops = { |
248 | .open = spufs_cntl_open, | 248 | .open = spufs_cntl_open, |
249 | .release = simple_attr_close, | ||
249 | .read = simple_attr_read, | 250 | .read = simple_attr_read, |
250 | .write = simple_attr_write, | 251 | .write = simple_attr_write, |
251 | .mmap = spufs_cntl_mmap, | 252 | .mmap = spufs_cntl_mmap, |