Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7db8064c authored by Joern Engel's avatar Joern Engel
Browse files

Fix logfs_get_sb_final error path



rootdir was already allocated, so we must iput it again.
Found by Al Viro.

Signed-off-by: default avatarJoern Engel <joern@logfs.org>
parent faaa27ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -328,7 +328,7 @@ static int logfs_get_sb_final(struct super_block *sb, struct vfsmount *mnt)

	sb->s_root = d_alloc_root(rootdir);
	if (!sb->s_root)
		goto fail;
		goto fail2;

	super->s_erase_page = alloc_pages(GFP_KERNEL, 0);
	if (!super->s_erase_page)