Browse Source

ntfs: forgets to unregister sysctls on register_filesystem() failure

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 13 years ago
parent
commit
f4c5499d2c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      fs/ntfs/super.c

+ 2 - 0
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");
 	printk(KERN_CRIT "NTFS: Failed to register NTFS filesystem driver!\n");
 
 
+	/* Unregister the ntfs sysctls. */
+	ntfs_sysctl(0);
 sysctl_err_out:
 sysctl_err_out:
 	kmem_cache_destroy(ntfs_big_inode_cache);
 	kmem_cache_destroy(ntfs_big_inode_cache);
 big_inode_err_out:
 big_inode_err_out: