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

Commit 76bf09fc authored by Al Viro's avatar Al Viro
Browse files

jfs: mising cleanup on register_filesystem() failure



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 2a152ad3
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -860,8 +860,14 @@ static int __init init_jfs_fs(void)
	jfs_proc_init();
	jfs_proc_init();
#endif
#endif


	return register_filesystem(&jfs_fs_type);
	rc = register_filesystem(&jfs_fs_type);
	if (!rc)
		return 0;


#ifdef PROC_FS_JFS
	jfs_proc_clean();
#endif
	kthread_stop(jfsSyncThread);
kill_committask:
kill_committask:
	for (i = 0; i < commit_threads; i++)
	for (i = 0; i < commit_threads; i++)
		kthread_stop(jfsCommitThread[i]);
		kthread_stop(jfsCommitThread[i]);