提交 839a534f 编写于 作者: C Chen Li 提交者: Namjae Jeon

exfat: avoid incorrectly releasing for root inode

In d_make_root, when we fail to allocate dentry for root inode,
we will iput root inode and returned value is NULL in this function.

So we do not need to release this inode again at d_make_root's caller.
Signed-off-by: NChen Li <chenli@uniontech.com>
Signed-off-by: NNamjae Jeon <namjae.jeon@samsung.com>
上级 62fb9874
......@@ -690,7 +690,7 @@ static int exfat_fill_super(struct super_block *sb, struct fs_context *fc)
if (!sb->s_root) {
exfat_err(sb, "failed to get the root dentry");
err = -ENOMEM;
goto put_inode;
goto free_table;
}
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册