Skip to content

Commit f4c5499

Browse files
author
Al Viro
committed
ntfs: forgets to unregister sysctls on register_filesystem() failure
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 03e897a commit f4c5499

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/ntfs/super.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3159,6 +3159,8 @@ static int __init init_ntfs_fs(void)
31593159
}
31603160
printk(KERN_CRIT "NTFS: Failed to register NTFS filesystem driver!\n");
31613161

3162+
/* Unregister the ntfs sysctls. */
3163+
ntfs_sysctl(0);
31623164
sysctl_err_out:
31633165
kmem_cache_destroy(ntfs_big_inode_cache);
31643166
big_inode_err_out:

0 commit comments

Comments
 (0)