ntfs3: put resources during ntfs_fill_super()
authorChristian Brauner <brauner@kernel.org>
Mon, 25 Sep 2023 11:08:52 +0000 (13:08 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 25 Sep 2023 12:12:42 +0000 (14:12 +0200)
commit493c71926c20309226b6d73f6b661a9813de5f0b
treeb75f3228cbd4a54a4c1fe10bf2ddf18e7a298cf1
parent2d1b3bbc3dd56fc8364350eb93e5d67a05cb2c23
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: 78a06688a4d4 ("ntfs3: drop inode references in ntfs_put_super()")
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ntfs3/super.c