提交 7db8064c 编写于 作者: J Joern Engel

Fix logfs_get_sb_final error path

rootdir was already allocated, so we must iput it again.
Found by Al Viro.
Signed-off-by: NJoern Engel <joern@logfs.org>
上级 faaa27ab
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册