diff options
| author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-23 10:51:17 -0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-23 12:41:34 -0800 |
| commit | 4d42545f4996ba997eecd6c02bd1e3a816695bcd (patch) | |
| tree | 4cc5492d2468a7860cb2cc9e64cd1ec79030a3c0 /include/linux/platform_data | |
| parent | 2ca2001b3a36ad58081e6907c396072a80a1ecc9 (diff) | |
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: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
