mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
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>
This commit is contained in:
parent
39f367c77f
commit
763369f701
1 changed files with 1 additions and 1 deletions
2
super.c
2
super.c
|
|
@ -984,7 +984,7 @@ static int exfat_fill_super(struct super_block *sb, void *data, int silent)
|
|||
if (!sb->s_root) {
|
||||
exfat_err(sb, "failed to get the root dentry");
|
||||
err = -ENOMEM;
|
||||
goto put_inode;
|
||||
goto free_table;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue