Skip to content

Commit

Permalink
jfs: mising cleanup on register_filesystem() failure
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent 2a152ad commit 76bf09f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fs/jfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -860,8 +860,14 @@ static int __init init_jfs_fs(void)
jfs_proc_init();
#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:
for (i = 0; i < commit_threads; i++)
kthread_stop(jfsCommitThread[i]);
Expand Down

0 comments on commit 76bf09f

Please sign in to comment.