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:59:20 +0000 (11:59 +0100)
commit11d05f01cf910149e9943383f2d4c82f339c167b
treee9de7c00d63e3e78566680baa6ee37fbdf9feb0d
parentb9945f9004e22db018d722e511d86595454659a7
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