[PATCH] spufs: dont leak directories in failed spu_create
authorArnd Bergmann <arnd@arndb.de>
Wed, 4 Jan 2006 19:31:26 +0000 (20:31 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 04:44:41 +0000 (15:44 +1100)
commit346f4d3ce948a381a559dcaefb141d79f492335c
tree47028cc77555850a235574b01e9a2eb398361074
parent0106246594a05f02a6be6ee4695c7584c758fa7f
[PATCH] spufs: dont leak directories in failed spu_create

If get_unused_fd failed in sys_spu_create, we never cleaned
up the created directory. Fix that by restructuring the
error path.

Noticed by Al Viro.

Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/inode.c