logfs: missing cleanup on register_filesystem() failure
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 17 Mar 2012 22:16:24 +0000 (18:16 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 21 Mar 2012 01:29:48 +0000 (21:29 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/logfs/super.c

index 7de18c3021febe108aa241543d90109962b448b0..97bca623d893a8345323739add9a4178da72ec9a 100644 (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: