Unverified Commit 493c7192 authored by Christian Brauner's avatar Christian Brauner
Browse files

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: default avatar <syzbot+2751da923b5eb8307b0b@syzkaller.appspotmail.com>
Fixes: 78a06688 ("ntfs3: drop inode references in ntfs_put_super()")
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 2d1b3bbc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1562,6 +1562,7 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
put_inode_out:
	iput(inode);
out:
	ntfs3_put_sbi(sbi);
	kfree(boot2);
	return err;
}