Skip to content

Commit 493c719

Browse files
committed
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: 78a0668 ("ntfs3: drop inode references in ntfs_put_super()") Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 2d1b3bb commit 493c719

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/ntfs3/super.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,6 +1562,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
15621562
put_inode_out:
15631563
iput(inode);
15641564
out:
1565+
ntfs3_put_sbi(sbi);
15651566
kfree(boot2);
15661567
return err;
15671568
}

0 commit comments

Comments
 (0)