Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 640045a1 authored by Al Viro's avatar Al Viro
Browse files

spufs: make register_filesystem the last potential failure exit



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 765fd6b2
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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: