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:52:06 +0000 (11:52 +0100)
commit4f13eab0e8a1702bd7d3dc22b7ee3b22ee60a36f
treeeb4ee2daaf2585244a792a6cd74e6d8c665c7939
parent242ba2e20baf02371d963547dc90a20e20615397
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