summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-03-17 18:16:24 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-03-20 21:29:48 -0400
commit03e897a1edb9604c299e1a7646ade0ca90fe1e02 (patch)
tree56b8be4804943a5641bc804e38c8a6983c0018ba
parent76bf09fcf76da1a2d777d9827d5a0a6a4cec0dcb (diff)
logfs: missing cleanup on register_filesystem() failure
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/logfs/super.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/logfs/super.c b/fs/logfs/super.c
index 7de18c3021fe..97bca623d893 100644
--- a/fs/logfs/super.c
+++ b/fs/logfs/super.c
@@ -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: