]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] spufs: fix support for read/write on cntl
authorNoguchi, Masato <Masato.Noguchi@jp.sony.com>
Tue, 10 Oct 2006 08:27:29 +0000 (10:27 +0200)
committerPaul Mackerras <paulus@samba.org>
Mon, 16 Oct 2006 05:52:14 +0000 (15:52 +1000)
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>
arch/powerpc/platforms/cell/spufs/file.c

index e0d730045260aeb00e399024485af2197fb39bd2..0de8e114e6b68355b26c2f2ef4de546367792dbc 100644 (file)
@@ -246,6 +246,7 @@ static int spufs_cntl_open(struct inode *inode, struct file *file)
 
 static struct file_operations spufs_cntl_fops = {
        .open = spufs_cntl_open,
+       .release = simple_attr_close,
        .read = simple_attr_read,
        .write = simple_attr_write,
        .mmap = spufs_cntl_mmap,