Skip to content

Commit

Permalink
[POWERPC] spufs: fix support for read/write on cntl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Noguchi, Masato authored and Paul Mackerras committed Oct 16, 2006
1 parent e5267b4 commit 654e4ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/platforms/cell/spufs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 654e4ae

Please sign in to comment.