From: Al Viro Date: Sat, 17 Mar 2012 22:19:57 +0000 (-0400) Subject: ntfs: forgets to unregister sysctls on register_filesystem() failure X-Git-Tag: v3.4-rc1~163^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4c5499d2cbe54f0470764acfd0faf4e965aa7e9;p=platform%2Fkernel%2Flinux-stable.git ntfs: forgets to unregister sysctls on register_filesystem() failure Signed-off-by: Al Viro --- diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c index 22020d8..3502a9e 100644 --- a/fs/ntfs/super.c +++ b/fs/ntfs/super.c @@ -3159,6 +3159,8 @@ static int __init init_ntfs_fs(void) } printk(KERN_CRIT "NTFS: Failed to register NTFS filesystem driver!\n"); + /* Unregister the ntfs sysctls. */ + ntfs_sysctl(0); sysctl_err_out: kmem_cache_destroy(ntfs_big_inode_cache); big_inode_err_out: