logfs: missing cleanup on register_filesystem() failure

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2012-03-17 18:16:24 -04:00
parent 76bf09fcf7
commit 03e897a1ed

View File

@ -626,7 +626,10 @@ static int __init logfs_init(void)
if (ret)
goto out2;
return register_filesystem(&logfs_fs_type);
ret = register_filesystem(&logfs_fs_type);
if (!ret)
return 0;
logfs_destroy_inode_cache();
out2:
logfs_compr_exit();
out1: