Skip to content

Commit 76bf09f

Browse files
author
Al Viro
committed
jfs: mising cleanup on register_filesystem() failure
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 2a152ad commit 76bf09f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎fs/jfs/super.c‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,14 @@ static int __init init_jfs_fs(void)
860860
jfs_proc_init();
861861
#endif
862862

863-
return register_filesystem(&jfs_fs_type);
863+
rc = register_filesystem(&jfs_fs_type);
864+
if (!rc)
865+
return 0;
864866

867+
#ifdef PROC_FS_JFS
868+
jfs_proc_clean();
869+
#endif
870+
kthread_stop(jfsSyncThread);
865871
kill_committask:
866872
for (i = 0; i < commit_threads; i++)
867873
kthread_stop(jfsCommitThread[i]);

0 commit comments

Comments
 (0)