Skip to content

Commit 03e897a

Browse files
author
Al Viro
committed
logfs: missing cleanup on register_filesystem() failure
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 76bf09f commit 03e897a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎fs/logfs/super.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,10 @@ static int __init logfs_init(void)
626626
if (ret)
627627
goto out2;
628628

629-
return register_filesystem(&logfs_fs_type);
629+
ret = register_filesystem(&logfs_fs_type);
630+
if (!ret)
631+
return 0;
632+
logfs_destroy_inode_cache();
630633
out2:
631634
logfs_compr_exit();
632635
out1:

0 commit comments

Comments
 (0)