Commit 03e897a1 authored by Al Viro's avatar Al Viro

logfs: missing cleanup on register_filesystem() failure

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 76bf09fc
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment