diff options
author | Sebastian Siewior <bigeasy@linux.vnet.ibm.com> | 2007-06-04 09:26:51 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-06-06 21:44:39 -0400 |
commit | 89df00855beabfa700f9a9ed52f0983bdc4b021d (patch) | |
tree | 8c3769a44be771d0e66df601bd6db139f22b4b87 /arch | |
parent | 877907d37da9694a34adc9dc3e2ce09400148cb5 (diff) |
[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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 1 |
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 fe960ddbde71..083568139771 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, | |||
274 | goto out; | 274 | goto out; |
275 | 275 | ||
276 | out_free_ctx: | 276 | out_free_ctx: |
277 | spu_forget(ctx); | ||
277 | put_spu_context(ctx); | 278 | put_spu_context(ctx); |
278 | out_iput: | 279 | out_iput: |
279 | iput(inode); | 280 | iput(inode); |