Skip to content

Commit 7db8064

Browse files
author
Joern Engel
committed
Fix logfs_get_sb_final error path
rootdir was already allocated, so we must iput it again. Found by Al Viro. Signed-off-by: Joern Engel <joern@logfs.org>
1 parent faaa27a commit 7db8064

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/logfs/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ static int logfs_get_sb_final(struct super_block *sb, struct vfsmount *mnt)
328328

329329
sb->s_root = d_alloc_root(rootdir);
330330
if (!sb->s_root)
331-
goto fail;
331+
goto fail2;
332332

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

0 commit comments

Comments
 (0)