spufs: make register_filesystem the last potential failure exit
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
765fd6b23d
commit
640045a1cd
|
@ -828,19 +828,19 @@ static int __init spufs_init(void)
|
||||||
ret = spu_sched_init();
|
ret = spu_sched_init();
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out_cache;
|
goto out_cache;
|
||||||
ret = register_filesystem(&spufs_type);
|
|
||||||
if (ret)
|
|
||||||
goto out_sched;
|
|
||||||
ret = register_spu_syscalls(&spufs_calls);
|
ret = register_spu_syscalls(&spufs_calls);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out_fs;
|
goto out_sched;
|
||||||
|
ret = register_filesystem(&spufs_type);
|
||||||
|
if (ret)
|
||||||
|
goto out_syscalls;
|
||||||
|
|
||||||
spufs_init_isolated_loader();
|
spufs_init_isolated_loader();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
out_fs:
|
out_syscalls:
|
||||||
unregister_filesystem(&spufs_type);
|
unregister_spu_syscalls(&spufs_calls);
|
||||||
out_sched:
|
out_sched:
|
||||||
spu_sched_exit();
|
spu_sched_exit();
|
||||||
out_cache:
|
out_cache:
|
||||||
|
|
Loading…
Reference in New Issue