From: Christian Brauner Date: Mon, 25 Sep 2023 11:08:52 +0000 (+0200) Subject: ntfs3: put resources during ntfs_fill_super() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=493c71926c20309226b6d73f6b661a9813de5f0b;p=linux.git 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 --- diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index cfec5e0c7f66a..5661a363005ee 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; }