Skip to content

Commit 839a534

Browse files
Chen Linamjaejeon
authored andcommitted
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: Chen Li <chenli@uniontech.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
1 parent 62fb987 commit 839a534

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/exfat/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ static int exfat_fill_super(struct super_block *sb, struct fs_context *fc)
690690
if (!sb->s_root) {
691691
exfat_err(sb, "failed to get the root dentry");
692692
err = -ENOMEM;
693-
goto put_inode;
693+
goto free_table;
694694
}
695695

696696
return 0;

0 commit comments

Comments
 (0)