Skip to content

Commit

Permalink
spufs: make register_filesystem the last potential failure exit
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent 765fd6b commit 640045a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arch/powerpc/platforms/cell/spufs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,19 +828,19 @@ static int __init spufs_init(void)
ret = spu_sched_init();
if (ret)
goto out_cache;
ret = register_filesystem(&spufs_type);
ret = register_spu_syscalls(&spufs_calls);
if (ret)
goto out_sched;
ret = register_spu_syscalls(&spufs_calls);
ret = register_filesystem(&spufs_type);
if (ret)
goto out_fs;
goto out_syscalls;

spufs_init_isolated_loader();

return 0;

out_fs:
unregister_filesystem(&spufs_type);
out_syscalls:
unregister_spu_syscalls(&spufs_calls);
out_sched:
spu_sched_exit();
out_cache:
Expand Down

0 comments on commit 640045a

Please sign in to comment.