Skip to content

Commit

Permalink
ntfs: forgets to unregister sysctls on register_filesystem() failure
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent 03e897a commit f4c5499
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ntfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f4c5499

Please sign in to comment.