]> git.baikalelectronics.ru Git - kernel.git/commit
fs/ntfs3: Delete duplicate condition in ntfs_read_mft()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 15 Oct 2022 08:28:55 +0000 (11:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2023 10:28:57 +0000 (11:28 +0100)
commit189e1611495cfc7d57c9eefbdc13bbef128e6908
treea1f79ef2613508b9353aec11cb293e2560c39f38
parentd572829d43a90f9dfe4200389a6e0a30cb17036d
fs/ntfs3: Delete duplicate condition in ntfs_read_mft()

[ Upstream commit 4eae97384352455831952a0b6db20b71b32574dc ]

There were two patches which addressed the same bug and added the same
condition:

commit 4c2436f9b3ea ("fs/ntfs3: Validate data run offset")
commit 287ea4d62638 ("fs/ntfs3: Fix slab-out-of-bounds read in run_unpack")

Delete one condition.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ntfs3/inode.c