logfs: missing cleanup on register_filesystem() failure
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
76bf09fcf7
commit
03e897a1ed
@ -626,7 +626,10 @@ static int __init logfs_init(void)
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto out2;
|
goto out2;
|
||||||
|
|
||||||
return register_filesystem(&logfs_fs_type);
|
ret = register_filesystem(&logfs_fs_type);
|
||||||
|
if (!ret)
|
||||||
|
return 0;
|
||||||
|
logfs_destroy_inode_cache();
|
||||||
out2:
|
out2:
|
||||||
logfs_compr_exit();
|
logfs_compr_exit();
|
||||||
out1:
|
out1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user