Skip to content

Commit

Permalink
logfs: missing cleanup on register_filesystem() failure
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent 76bf09f commit 03e897a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fs/logfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 03e897a

Please sign in to comment.