From: Al Viro Date: Sat, 17 Mar 2012 22:14:34 +0000 (-0400) Subject: jfs: mising cleanup on register_filesystem() failure X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=76bf09fcf76da1a2d777d9827d5a0a6a4cec0dcb;p=openwrt%2Fstaging%2Fblogic.git jfs: mising cleanup on register_filesystem() failure Signed-off-by: Al Viro --- diff --git a/fs/jfs/super.c b/fs/jfs/super.c index b3bb95504479..4a82950f412f 100644 --- a/fs/jfs/super.c +++ b/fs/jfs/super.c @@ -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]);