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

Commit d3b39de5 authored by Chao Yu's avatar Chao Yu Committed by Sahitya Tummala
Browse files

f2fs: fix potential overflow when adjusting GC cycle



commit b8c502b81e3f899c6488967dec61eed0f5907db3 upstream.

While comparing signed and unsigned variables, compiler will converts the
signed value to unsigned one, due to this reason, {in,de}crease_sleep_time
may return overflowed result.

Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Git-commit: 45359445
Git-repo: https://android.googlesource.com/kernel/common.git


Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent 8ba42f41
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