]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: move 'ix' sanity check to corrent position
authorGou Hao <gouhao@uniontech.com>
Wed, 6 Sep 2023 01:33:41 +0000 (09:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:08:23 +0000 (11:08 +0100)
commit001f90cd9d2f1ca3ea285d0846f4103fd51e43c3
tree544dbcbd9c334a84e97b5156b61082ba39efab38
parentc24a3c9e373e80b595a92f86dad9f2f69b65b227
ext4: move 'ix' sanity check to corrent position

[ Upstream commit af90a8f4a09ec4a3de20142e37f37205d4687f28 ]

Check 'ix' before it is used.

Fixes: 80e675f906db ("ext4: optimize memmmove lengths in extent/index insertions")
Signed-off-by: Gou Hao <gouhao@uniontech.com>
Link: https://lore.kernel.org/r/20230906013341.7199-1-gouhao@uniontech.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/extents.c