summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2023-09-25 13:08:52 +0200
committerChristian Brauner <brauner@kernel.org>2023-09-25 14:12:42 +0200
commit493c71926c20309226b6d73f6b661a9813de5f0b (patch)
treeb75f3228cbd4a54a4c1fe10bf2ddf18e7a298cf1 /fs
parent2d1b3bbc3dd56fc8364350eb93e5d67a05cb2c23 (diff)
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/ntfs3/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c
index cfec5e0c7f66..5661a363005e 100644
--- a/fs/ntfs3/super.c
+++ b/fs/ntfs3/super.c
@@ -1562,6 +1562,7 @@ load_root:
put_inode_out:
iput(inode);
out:
+ ntfs3_put_sbi(sbi);
kfree(boot2);
return err;
}