summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-03-17 18:19:57 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-03-20 21:29:49 -0400
commitf4c5499d2cbe54f0470764acfd0faf4e965aa7e9 (patch)
tree33028adf1123e4fec8ff8f63c8bc9a7fd1cc4111 /fs
parent03e897a1edb9604c299e1a7646ade0ca90fe1e02 (diff)
downloadlinux-f4c5499d2cbe54f0470764acfd0faf4e965aa7e9.tar.bz2
ntfs: forgets to unregister sysctls on register_filesystem() failure
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/ntfs/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c
index 22020d8b1ed2..3502a9e8f0a9 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: