summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Siewior <bigeasy@linux.vnet.ibm.com>2007-06-04 23:26:51 +1000
committerPaul Mackerras <paulus@samba.org>2007-06-07 11:44:39 +1000
commit89df00855beabfa700f9a9ed52f0983bdc4b021d (patch)
tree8c3769a44be771d0e66df601bd6db139f22b4b87
parent877907d37da9694a34adc9dc3e2ce09400148cb5 (diff)
downloadlinux-3.10-89df00855beabfa700f9a9ed52f0983bdc4b021d.tar.gz
linux-3.10-89df00855beabfa700f9a9ed52f0983bdc4b021d.tar.bz2
linux-3.10-89df00855beabfa700f9a9ed52f0983bdc4b021d.zip
[POWERPC] spufs: Free mm if spufs_fill_dir() failed
In case spufs_fill_dir() fails only put_spu_context() gets called for cleanup and the acquired mm_struct never gets freed. Signed-off-by: Sebastian Siewior <bigeasy@linux.vnet.ibm.com> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--arch/powerpc/platforms/cell/spufs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c
index fe960ddbde7..08356813977 100644
--- a/arch/powerpc/platforms/cell/spufs/inode.c
+++ b/arch/powerpc/platforms/cell/spufs/inode.c
@@ -274,6 +274,7 @@ spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags,
goto out;
out_free_ctx:
+ spu_forget(ctx);
put_spu_context(ctx);
out_iput:
iput(inode);