Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

jfs: mising cleanup on register_filesystem() failure

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 76bf09fc 2a152ad3

+7 -1
+7 -1
fs/jfs/super.c
··· 860 860 jfs_proc_init(); 861 861 #endif 862 862 863 - return register_filesystem(&jfs_fs_type); 863 + rc = register_filesystem(&jfs_fs_type); 864 + if (!rc) 865 + return 0; 864 866 867 + #ifdef PROC_FS_JFS 868 + jfs_proc_clean(); 869 + #endif 870 + kthread_stop(jfsSyncThread); 865 871 kill_committask: 866 872 for (i = 0; i < commit_threads; i++) 867 873 kthread_stop(jfsCommitThread[i]);