[POWERPC] spufs: Free mm if spufs_fill_dir() failed
[linux-3.10.git] / arch / powerpc / platforms / cell / spufs / inode.c
index fe960ddbde71d09e056b021378fb56dc49d0bc33..08356813977103e173b76bea7213dcf7f9b8bab7 100644 (file)
@@ -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);