Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4c5499d authored by Al Viro's avatar Al Viro
Browse files

ntfs: forgets to unregister sysctls on register_filesystem() failure



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 03e897a1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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: