diff options
| author | SeongJae Park <sj@kernel.org> | 2026-03-07 22:49:14 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-04-05 23:53:22 +0300 |
| commit | 23754a36cd1ce888a136c762080c89e4d7b364d9 (patch) | |
| tree | d08ec8948f32f2f3ddb266897f69bde7ecfd7095 /include | |
| parent | f05e253637837b603682173ed6bd0bc873dc0496 (diff) | |
| download | linux-23754a36cd1ce888a136c762080c89e4d7b364d9.tar.xz | |
mm/damon/core: use time_after_eq() in kdamond_fn()
damon_ctx->passed_sample_intervals and damon_ctx->next_*_sis are unsigned
long. Those are compared in kdamond_fn() using normal comparison
operators. It is unsafe from overflow. Use time_after_eq(), which is
safe from overflows when correctly used, instead.
Link: https://lkml.kernel.org/r/20260307194915.203169-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
