Subject: PATCH: free mm if spufs_fill_dir() failed From: Sebastian Siewior 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 Signed-off-by: Arnd Bergmann --- Index: linux-2.6/arch/powerpc/platforms/cell/spufs/inode.c =================================================================== --- linux-2.6.orig/arch/powerpc/platforms/cell/spufs/inode.c +++ linux-2.6/arch/powerpc/platforms/cell/spufs/inode.c @@ -270,6 +270,7 @@ spufs_mkdir(struct inode *dir, struct de goto out; out_free_ctx: + spu_forget(ctx); put_spu_context(ctx); out_iput: iput(inode);