mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 20:24:12 +08:00
ntfs3: put resources during ntfs_fill_super()
During ntfs_fill_super() some resources are allocated that we need to
cleanup in ->put_super() such as additional inodes. When
ntfs_fill_super() fails these resources need to be cleaned up as well.
Reported-by: syzbot+2751da923b5eb8307b0b@syzkaller.appspotmail.com
Fixes: 78a06688a4
("ntfs3: drop inode references in ntfs_put_super()")
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
2d1b3bbc3d
commit
493c71926c
@ -1562,6 +1562,7 @@ load_root:
|
||||
put_inode_out:
|
||||
iput(inode);
|
||||
out:
|
||||
ntfs3_put_sbi(sbi);
|
||||
kfree(boot2);
|
||||
return err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user