Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 012cf6b8 authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by Zvikomborero Vincent Zvikaramba
Browse files

f2fs: fix overflow due to condition check order



In the last ilen case, i was already increased, resulting in accessing out-
of-boundary entry of do_replace and blkaddr.
Fix to check ilen first to exit the loop.

Fixes: 2aa8fbb9693020 ("f2fs: refactor __exchange_data_block for speed up")
Cc: stable@vger.kernel.org # 4.8+
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent baf45860
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment